Skip to content

Commit fe0b1ef

Browse files
authored
[css-contain-3] Support boolean context style() queries w3c#8127 (w3c#8729)
Per resolution in w3c#8127, style() queries can query properties without a value which evaluates to true if the computed value is different from the initial value for that property. Co-authored-by: Rune Lillesveen <futhark@chromium.org>
1 parent 7c41e1e commit fe0b1ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-contain-3/Overview.bs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ Container Queries: the ''@container'' rule</h3>
602602
<dfn><<style-in-parens>></dfn> = ( <<style-query>> )
603603
| ( <<style-feature>> )
604604
| <<general-enclosed>>
605+
<dfn><<style-feature>></dfn> = <<ident>> : <<declaration-value>> | <<ident>>
605606
</pre>
606607

607608
The keywords ''container-name/none'', ''and'', ''not'', and ''or''
@@ -910,6 +911,11 @@ Style Container Features</h3>
910911
(which is also [=computed value|computed=] with respect to the [=query container=]),
911912
unknown if the property or its value is invalid or unsupported,
912913
and false otherwise.
914+
915+
A [=style feature=] can also be a property name without a value. Such
916+
features evaluate to true if the [=computed value=] is different from the [=initial=]
917+
value for the given [=property=].
918+
913919
The boolean syntax and logic combining [=style features=] into a [=container style query|style query=]
914920
is the same as for [=CSS feature queries=].
915921
(See ''@supports''. [[!CSS-CONDITIONAL-3]])

0 commit comments

Comments
 (0)