Skip to content

Commit 418162a

Browse files
committed
[css-device-adapt] Extend css-conditional rather than CSS21 to allow nesting in @media
1 parent c04e6c4 commit 418162a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

css-device-adapt/Overview.bs

+6-6
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ non-terminals:
182182
;
183183
</pre>
184184

185-
It is also added to media production to allow ''@viewport'' rules
186-
nested inside ''@media'' rules <span class="note">This is extending
187-
the CSS 2.1 syntax. A draft of CSS3 Paged Media also allows page
188-
inside @media.</span>:
185+
It is also added to the <a spec="css-conditional">nested_statement</a> production defined in [[!css-conditional]]
186+
to allow ''@viewport'' rules nested inside <a spec="css-conditional">conditional group rules</a>
187+
such as ''@media'' or ''@supports'':
189188

190189
<pre>
191-
media
192-
: MEDIA_SYM S* media_list LBRACE S* [ ruleset | viewport ]* '}' S*
190+
nested_statement
191+
: ruleset | media | page | font_face_rule | keyframes_rule |
192+
supports_rule | viewport
193193
;
194194
</pre>
195195

0 commit comments

Comments
 (0)