Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Reformulate and add general-enclosed evaluation
  • Loading branch information
lilles committed May 3, 2023
commit 8a1adeaa2617c69ae28ceea3623de09696e941a0
21 changes: 10 additions & 11 deletions css-contain-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -621,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 @@ -902,17 +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 valid [=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=]),
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 supported 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