From 963fd9fb676e5bfeb1b1ce749c1a1f2f334931eb Mon Sep 17 00:00:00 2001 From: fantasai Date: Fri, 1 Nov 2024 18:30:01 -0400 Subject: [PATCH] [css-values-5] Address cdoublev's review #10457 --- css-values-5/Overview.bs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/css-values-5/Overview.bs b/css-values-5/Overview.bs index 7a185da8045c..0537d2c1388f 100644 --- a/css-values-5/Overview.bs +++ b/css-values-5/Overview.bs @@ -224,8 +224,8 @@ Boolean Expression Multiplier <> The <> notation wraps another value type in the square brackets within it, e.g. <boolean[ <test> ]>, - and represents that value alone as well as - boolean combinations of those values + and represents that value type alone as well as + boolean combinations using the ''not'', ''and'', and ''or'' keywords and grouping parenthesis. It is formally equivalent to: @@ -235,21 +235,22 @@ Boolean Expression Multiplier <> [ [ and ]* | [ or ]* ] - = | ( ) | + = | ( ]> ) | - The <> production represents a true, false, or unknown value, + The <> production represents a true, false, or unknown value. + Its value is resolved using 3-value Kleene logic, with top-level unknown values (those not directly nested inside the grammar of another <>) - resolving to false unless otherwise specified. - Its value is resolved using 3-value Kleene logic; + resolving to false unless otherwise specified; see [[#boolean-logic]] for details.
For example, the ''@container'' rule allows a wide variety of tests: including size queries, style queries, and scroll-state queries. All of these are arbitrarily combinable with boolean logic. - Using <>, the grammar for an ''@container'' query is: + Using <>, the grammar for an ''@container'' query + could be written as: <container-query> = <boolean[ <cq-test> ]>