Skip to content

Commit 590b70f

Browse files
committed
[css-values-5] Fix grammar errors in if() notation #10064 #5624 #5009 #6638 #4731 #3455
1 parent f70deb4 commit 590b70f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

css-values-5/Overview.bs

+8-4
Original file line numberDiff line numberDiff line change
@@ -1253,9 +1253,10 @@ Conditional Value Selection: the ''if()'' notation</h3>
12531253
Its argument consists of an ordered semi-colon&ndash;separated list of statements,
12541254
each consisting of a condition
12551255
followed by a colon
1256-
followed by the value represented by this notation
1257-
if the corresponding condition is the first in the list to be true.
1258-
If no condition matches,
1256+
followed by a value.
1257+
An ''if()'' notation represents
1258+
the value corresponding to the first condition in its argument list to be true;
1259+
if no condition matches,
12591260
then the ''if()'' notation represents an empty token stream.
12601261

12611262
Note: [=Arbitrary substitution functions=] all resolve at [=computed value=] time;
@@ -1269,12 +1270,15 @@ Conditional Value Selection: the ''if()'' notation</h3>
12691270
<dfn><<if()>></dfn> = if( [ <<if-condition>> : <<declaration-value>>? ; ]*
12701271
<<if-condition>> : <<declaration-value>>? ;? )
12711272
<dfn><<if-condition>></dfn> =
1272-
supports( [ <supports-condition> | <declaration> ] ) |
1273+
supports( [ <<supports-condition>> | <<ident>> : <<declaration-value>> ] ) |
12731274
media( <<media-query>> ) |
12741275
style( <<style-query>> ) |
12751276
else
12761277
</pre>
12771278

1279+
The <dfn value for="if()">else</dfn> keyword represents
1280+
a condition that is always true.
1281+
12781282
ISSUE: Incorporate boolean syntax for combining these queries.
12791283

12801284
<!-- Big Text: toggle()

0 commit comments

Comments
 (0)