diff --git a/css-values-5/Overview.bs b/css-values-5/Overview.bs index 67ab41bc86a..499b51716ec 100644 --- a/css-values-5/Overview.bs +++ b/css-values-5/Overview.bs @@ -81,11 +81,11 @@ Value Definition Syntax
  1. Boolean combinations of a conditional notation. - These are written using the <> notation, + These are written using the <> notation, and represent recursive expressions of boolean logic using keywords and parentheses, applied to the grammar specified in brackets, - e.g. <> to express [=media queries=]. + e.g. <> to express [=media queries=].

@@ -213,16 +213,16 @@ Commas in Function Arguments

but it should be avoided unless necessary.

-Boolean Expression Multiplier <>

+Boolean Expression Multiplier <> Several contexts (such as ''@media'', ''@supports'', ''if()'', ...) specify conditions, and allow combining those conditions with boolean logic (and/or/not/grouping). Because they use the same non-trivial recursive syntax structure, - the special <> production represents this pattern generically. + the special <> production represents this pattern generically. - The <> notation wraps another value type in the square brackets within it, + The <> notation wraps another value type in the square brackets within it, e.g. <boolean[ <test> ]>, and represents that value type alone as well as boolean combinations @@ -231,17 +231,17 @@ Boolean Expression Multiplier <> It is formally equivalent to: - <boolean[ <test> ]> = not <boolean-group> | <boolean-group> - [ [ and <boolean-group> ]* - | [ or <boolean-group> ]* ] + <boolean-expr[ <test> ]> = not <boolean-expr-group> | <boolean-expr-group> + [ [ and <boolean-expr-group> ]* + | [ or <boolean-expr-group> ]* ] - <boolean-group> = <test> | ( <boolean[ <test> ]> ) | <general-enclosed> + <boolean-expr-group> = <test> | ( <boolean-expr[ <test> ]> ) | <general-enclosed> - 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 <>) + (those not directly nested inside the grammar of another <>) resolving to false unless otherwise specified; see [[#boolean-logic]] for details. @@ -249,15 +249,15 @@ Boolean Expression Multiplier <> 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 + Using <>, the grammar for an ''@container'' query could be written as: - <container-query> = <boolean[ <cq-test> ]> + <container-query> = <boolean-expr[ <cq-test> ]> <cq-test> = (<size-query>) | style( <style-query> ) | scroll-state( <scroll-state-query> ) - <size-query> = <boolean[ ( <size-feature> ) ]> | <size-feature> - <style-query> = <boolean[ ( <style-feature> ) ]> | <style-feature> - <scroll-state-query> = <boolean[ ( <scroll-state-feature> ) ]> | <scroll-state-feature> + <size-query> = <boolean-expr[ ( <size-feature> ) ]> | <size-feature> + <style-query> = <boolean-expr[ ( <style-feature> ) ]> | <style-feature> + <scroll-state-query> = <boolean-expr[ ( <scroll-state-feature> ) ]> | <scroll-state-feature> @@ -266,7 +266,7 @@ Boolean Expression Multiplier <> will be parsed and considered “unknown”, rather than invalidating the production. For consistency with that allowance, - the <test> term in a <> + the <test> term in a <> should be defined to match <>.

@@ -1342,7 +1342,7 @@ Conditional Value Selection: the ''if()'' notation

 	<> = if( [ <> : <>? ; ]*
 	             <> : <>? ;? )
-	<> = <> ]>> | else
+	<> = <> ]>> | else
 	<> =
 	  supports( [ <> | <> : <> ] ) |
 	  media( <> ) |
@@ -3192,7 +3192,7 @@ Safely Handling Overly-Long Substitution
 Appendix B: Boolean Logic
 
 	In order to accommodate future extensions of CSS,
-	<> productions generally interpret their <> grammar branch as unknown,
+	<> productions generally interpret their <> grammar branch as unknown,
 	and their boolean logic is resolved using 3-value Kleene logic.
 	In some cases (such as ''@supports''),
 	<> is instead defined as false;
@@ -3220,7 +3220,7 @@ Appendix B: Boolean Logic
 		false if all of them are false,
 		and unknown otherwise (i.e. at least one unknown, but no true).
 
-	If a “top-level” <> is unknown,
+	If a “top-level” <> is unknown,
 	and the containing context doesn't otherwise define
 	how to handle unknown conditions,
 	it evaluates to false.
@@ -3276,7 +3276,7 @@ Changes
 	* Changed ''*progress()'' functions to use commas for argument separation,
 		for consistency with ''*mix()'' and ''clamp()''.
 		(Issue 10489)
-	* Defined new <> multipler for the [=value definition syntax=].
+	* Defined new <> multipler for the [=value definition syntax=].
 		(Issue 10457)
 	* Imported definition of [=arbitrary substitution function=] from [[css-variables-1]].
 		(Issue 10679)
@@ -3307,7 +3307,7 @@ Additions Since Level 4
 	* Added the ''random()'' and ''random-item()'' functions.
 	* Added the ''sibling-count()'' and ''sibling-index()'' functions.
 	* Added the ''calc-size()'' function, and the related 'interpolate-size' property.
-	* Added the <> syntax notation to the [=value definition syntax=].
+	* Added the <> syntax notation to the [=value definition syntax=].