Skip to content

Commit f1905f0

Browse files
committed
[css-conditional-5] Use the generic <boolean-expr>
1 parent c327d94 commit f1905f0

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

css-conditional-5/Overview.bs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -161,28 +161,11 @@ Generalized Conditional Rules: the ''@when'' rule</h2>
161161
It is defined as:
162162

163163
<pre class=prod>
164-
@when <<boolean-condition>> {
164+
@when <<boolean-expr[ <if-test> ]>> {
165165
<<rule-list>>
166166
}
167167
</pre>
168168

169-
Where <dfn><<boolean-condition>></dfn> is a boolean algebra a la [[mediaqueries-4#mq-syntax]],
170-
but with ''media()'' and ''supports()'' functions as leaves.
171-
172-
Issue: Define "boolean algebra, with X as leaves" in a generic way in Conditional,
173-
so all the conditional rules can reference it directly,
174-
rather than having to redefine boolean algebra on their own.
175-
176-
The ''media()'' and ''supports()'' functions are defined as:
177-
178-
<pre class=prod>
179-
<dfn>media()</dfn> = media( [ <<mf-plain>> | <<mf-boolean>> | <<mf-range>> ] )
180-
<dfn>supports()</dfn> = supports( <<declaration>> )
181-
</pre>
182-
183-
A ''media()'' or ''supports()'' function is associated the boolean result
184-
that its contained condition is associated with.
185-
186169
<h2 id="else-rule">
187170
Chained Conditionals: the ''@else'' rule</h2>
188171

0 commit comments

Comments
 (0)