Skip to content

Commit 31e4e79

Browse files
authored
[css-values-5] Fix syntax references for functions (#12183)
The spec defines functional notations in prose through `<dfn>`, then details the syntax of these notations. The syntaxes were incorrectly wrapped in another `<dfn>`, making Bikeshed think that these were new type definitions instead of references to the functional notation definitions. In other words, this update gets things back to usual spec text, e.g., as in:https://drafts.csswg.org/css-values-4/#ref-for-funcdef-abs%E2%91%A1 (which correctly links back to the definition in prose of `abs()`).
1 parent 3c22b77 commit 31e4e79

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

css-values-5/Overview.bs

+10-10
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ Calculated Progress Values: the ''progress()'' notation</h3>
837837
The syntax of ''progress()'' is defined as follows:
838838

839839
<pre class=prod>
840-
<dfn id=typedef-progress-fn><<progress()>></dfn> = progress(<<calc-sum>>, <<calc-sum>>, <<calc-sum>>)
840+
<<progress()>> = progress(<<calc-sum>>, <<calc-sum>>, <<calc-sum>>)
841841
</pre>
842842

843843
where the first, second, and third <<calc-sum>> values represent
@@ -874,7 +874,7 @@ Media Query Progress Values: the ''media-progress()'' notation</h3>
874874
The syntax of ''media-progress()'' is defined as follows:
875875

876876
<pre class=prod>
877-
<dfn><<media-progress()>></dfn> = media-progress(<<mf-name>>, <<calc-sum>>, <<calc-sum>>)
877+
<<media-progress()>> = media-progress(<<mf-name>>, <<calc-sum>>, <<calc-sum>>)
878878
</pre>
879879

880880
where the value of the [=media feature=] corresponding to <<mf-name>>
@@ -910,7 +910,7 @@ Container Query Progress Values: the ''container-progress()'' notation</h3>
910910
The syntax of ''container-progress()'' is defined as follows:
911911

912912
<pre class=prod>
913-
<dfn><<container-progress()>></dfn> = container-progress(<<mf-name>> [ of <<container-name>> ]?, <<calc-sum>>, <<calc-sum>>)
913+
<<container-progress()>> = container-progress(<<mf-name>> [ of <<container-name>> ]?, <<calc-sum>>, <<calc-sum>>)
914914
</pre>
915915

916916
where <<mf-name>> represents a [=size feature=]
@@ -1083,7 +1083,7 @@ Interpolated Numeric and Dimensional Values: the ''calc-mix()'' notation</h3>
10831083
with the following syntactic form:
10841084

10851085
<pre class=prod>
1086-
<dfn><<calc-mix()>></dfn> = calc-mix( <<progress>>, <<calc-sum>>, <<calc-sum>> )
1086+
<<calc-mix()>> = calc-mix( <<progress>>, <<calc-sum>>, <<calc-sum>> )
10871087
</pre>
10881088

10891089
The <<calc-sum>> arguments can resolve
@@ -1154,7 +1154,7 @@ Interpolated Transform Values: the ''transform-mix()'' notation</h3>
11541154
with the following syntactic form:
11551155

11561156
<pre class=prod>
1157-
<dfn><<transform-mix()>></dfn> = transform-mix( <<progress>>, <<transform-list>>, <<transform-list>> )
1157+
<<transform-mix()>> = transform-mix( <<progress>>, <<transform-list>>, <<transform-list>> )
11581158
</pre>
11591159

11601160
The [=used value=] of a valid ''transform-mix()'' is
@@ -1179,7 +1179,7 @@ Interpolated Property Values: the ''mix()'' notation</h3>
11791179
which supports two alternative syntax patterns:
11801180

11811181
<pre class="prod">
1182-
<dfn><<mix()>></dfn> =
1182+
<<mix()>> =
11831183
mix( <<progress>> , <<whole-value>> , <<whole-value>> ) |
11841184
mix( <<progress>> && of <<keyframes-name>> )
11851185
</pre>
@@ -1325,7 +1325,7 @@ Selecting the First Supported Value: the ''first-valid()'' notation</h3>
13251325
as the whole value of the property it's used in.
13261326

13271327
<pre class=prod>
1328-
<dfn>&lt;first-valid()></dfn> = first-valid( <<declaration-value>># )
1328+
<<first-valid()>> = first-valid( <<declaration-value>># )
13291329
</pre>
13301330

13311331
If none of the arguments represent a valid value for the property,
@@ -1372,7 +1372,7 @@ Conditional Value Selection: the ''if()'' notation</h3>
13721372
The ''if()'' function's syntax is defined as follows:
13731373

13741374
<pre class=prod>
1375-
<dfn><<if()>></dfn> = if( [ <<if-branch>> ; ]* <<if-branch>> ;? )
1375+
<<if()>> = if( [ <<if-branch>> ; ]* <<if-branch>> ;? )
13761376
<dfn><<if-branch>></dfn> = <<if-condition>> : <<declaration-value>>?
13771377
<dfn><<if-condition>></dfn> = <<boolean-expr[ <<if-test>> ]>> | else
13781378
<dfn><<if-test>></dfn> =
@@ -1469,7 +1469,7 @@ Toggling Between Values: the ''toggle()'' notation</h3>
14691469
The syntax of the ''toggle()'' expression is:
14701470

14711471
<pre class=prod>
1472-
<dfn><<toggle()>></dfn> = toggle( <<whole-value>># )
1472+
<<toggle()>> = toggle( <<whole-value>># )
14731473
</pre>
14741474

14751475
The ''toggle()'' notation is a <<whole-value>>.
@@ -1581,7 +1581,7 @@ Inherited Value References: the ''inherit()'' notation</h3>
15811581
whose syntax is defined as:
15821582

15831583
<pre class=prod>
1584-
<dfn><<inherit()>></dfn> = inherit( <<custom-property-name>>, <<declaration-value>>? )
1584+
<<inherit()>> = inherit( <<custom-property-name>>, <<declaration-value>>? )
15851585
</pre>
15861586

15871587
The ''inherit()'' function's [=argument grammar=] is:

0 commit comments

Comments
 (0)