File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -161,28 +161,11 @@ Generalized Conditional Rules: the ''@when'' rule</h2>
161
161
It is defined as:
162
162
163
163
<pre class=prod>
164
- @when <<boolean-condition >> {
164
+ @when <<boolean-expr[ <if-test> ] >> {
165
165
<<rule-list>>
166
166
}
167
167
</pre>
168
168
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
-
186
169
<h2 id="else-rule">
187
170
Chained Conditionals: the ''@else'' rule</h2>
188
171
You can’t perform that action at this time.
0 commit comments