Skip to content

Commit

Permalink
[css-values-5] Fix grammar errors in if() notation #10064 #5624 #5009 #…
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Oct 25, 2024
1 parent f70deb4 commit 590b70f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions css-values-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1253,9 +1253,10 @@ Conditional Value Selection: the ''if()'' notation</h3>
Its argument consists of an ordered semi-colon&ndash;separated list of statements,
each consisting of a condition
followed by a colon
followed by the value represented by this notation
if the corresponding condition is the first in the list to be true.
If no condition matches,
followed by a value.
An ''if()'' notation represents
the value corresponding to the first condition in its argument list to be true;
if no condition matches,
then the ''if()'' notation represents an empty token stream.

Note: [=Arbitrary substitution functions=] all resolve at [=computed value=] time;
Expand All @@ -1269,12 +1270,15 @@ Conditional Value Selection: the ''if()'' notation</h3>
<dfn><<if()>></dfn> = if( [ <<if-condition>> : <<declaration-value>>? ; ]*
<<if-condition>> : <<declaration-value>>? ;? )
<dfn><<if-condition>></dfn> =
supports( [ <supports-condition> | <declaration> ] ) |
supports( [ <<supports-condition>> | <<ident>> : <<declaration-value>> ] ) |
media( <<media-query>> ) |
style( <<style-query>> ) |
else
</pre>

The <dfn value for="if()">else</dfn> keyword represents
a condition that is always true.

ISSUE: Incorporate boolean syntax for combining these queries.

<!-- Big Text: toggle()
Expand Down

0 comments on commit 590b70f

Please sign in to comment.