Skip to content

Commit d3aa98b

Browse files
committed
[css-values-5] Fix the definition of if(media()) to match how the other queries work.
1 parent 3ae6658 commit d3aa98b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

css-values-5/Overview.bs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,14 @@ Selecting the First Supported Value: the ''first-valid()'' notation</h3>
13221322
unlike <<whole-value>>.
13231323

13241324
<!-- Big Text: if()
1325+
1326+
████ █████▌ ██ ██
1327+
▐▌ █▌ █▌ ▐█
1328+
▐▌ █▌ █▌ ▐█
1329+
▐▌ ████ █▌ ▐█
1330+
▐▌ █▌ █▌ ▐█
1331+
▐▌ █▌ █▌ ▐█
1332+
████ █▌ ██ ██
13251333
-->
13261334

13271335
<h3 id="if-notation">
@@ -1345,11 +1353,12 @@ Conditional Value Selection: the ''if()'' notation</h3>
13451353
<<if-condition>> : <<declaration-value>>? ;? )
13461354
<dfn><<if-condition>></dfn> = <<boolean-expr[ <<if-test>> ]>> | else
13471355
<dfn><<if-test>></dfn> =
1348-
supports( [ <<supports-condition>> | <<ident>> : <<declaration-value>> ] ) |
1349-
media( <<media-query>> ) |
1356+
supports( [ <<ident>> : <<declaration-value>> ] | <<supports-condition>> ) |
1357+
media( <<media-feature>> | <<media-condition>> ) |
13501358
style( <<style-query>> )
13511359
</pre>
13521360

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

0 commit comments

Comments
 (0)