Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 10 additions & 13 deletions css-contain-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,6 @@ Container Queries: the ''@container'' rule</h3>
<dfn><<style-in-parens>></dfn> = ( <<style-query>> )
| ( <<style-feature>> )
| <<general-enclosed>>
<dfn><<style-feature>></dfn> = <<ident>> : <<declaration-value>> | <<ident>>
</pre>

The keywords ''container-name/none'', ''and'', ''not'', and ''or''
Expand All @@ -622,7 +621,8 @@ Container Queries: the ''@container'' rule</h3>
each [=container feature=] in the <<container-query>>
is evaluated against that [=query container=].
If no ancestor is an eligible [=query container=],
then the [=container query=] is ''unknown'' for that element.
then the [=container query=] is ''unknown'' for that element. As for media queries,
<<general-enclosed>> evaluates to ''unknown''.

<div class=example>
As with [=media queries=],
Expand Down Expand Up @@ -903,18 +903,15 @@ Style Container Features</h3>
It is a boolean combination of
individual <dfn>style features</dfn> (<<style-feature>>)
that each query a single, specific property of the [=query container=].
The syntax of a <dfn><<style-feature>></dfn> is the same as for a [=declaration=]
[[!CSS-SYNTAX-3]],
and its query is true if
the [=computed value=] of the given property on the [=query container=]
matches the given value
(which is also [=computed value|computed=] with respect to the [=query container=]),
unknown if the property or its value is invalid or unsupported,
and false otherwise.
The syntax of a <dfn><<style-feature>></dfn> is either the same as for a valid [=declaration=]
[[!CSS-SYNTAX-3]], a [=supported CSS property=], or a <<custom-property-name>>.

Its query evaluates to true if the [=computed value=] of the given property on the
[=query container=] matches the given value (which is also [=computed value|computed=]
with respect to the [=query container=]), and false otherwise.

A [=style feature=] can also be a property name without a value. Such
features evaluate to true if the [=computed value=] is different from the [=initial=]
value for the given [=property=].
A [=style feature=] without a value evaluates to true if the [=computed value=]
is different from the [=initial=] value for the given [=property=].

The boolean syntax and logic combining [=style features=] into a [=container style query|style query=]
is the same as for [=CSS feature queries=].
Expand Down