Skip to content

Commit

Permalink
[css-cascade-4][css-cascade-5] Use updated grammar style for @import'…
Browse files Browse the repository at this point in the history
…s mq and sq references.
  • Loading branch information
fantasai committed Dec 3, 2021
1 parent 483574b commit b568a7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions css-cascade-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:html; type:element; text:style

<pre class=ignored-specs>
spec:mediaqueries-5
spec:css-values-4
spec:css-values-5
</pre>

<style>
Expand Down Expand Up @@ -226,12 +226,11 @@ Conditional ''@import'' Rules</h3>
</pre>
</div>

A <dfn noexport for="@import"><<media-query>></dfn> corresponds to the <code>media_query_list</code> production
and is interpreted as a <a>media query</a>,
and a <dfn noexport for="@import"><<supports-condition>></dfn> corresponds to a <code>supports_condition</code> production
and is interpreted as an ''@supports'' condition.
If a <dfn noexport for="@import"><<declaration>></dfn> (a <code>declaration</code> production) is given in place of a <<supports-condition>>,
it must be interpreted as a <code>supports_declaration_condition</code> production
The [=import conditions=] are given by
<<media-query-list>>, which is parsed and interpreted as a <a>media query list</a>,
and <<supports-condition>>, is parsed and interpreted as a [[supports query]].
If a <<declaration>> is given in place of a <<supports-condition>>,
it must be interpreted as a <<supports-decl>>
(i.e. the extra set of parentheses is implied)
and treated as a <<supports-condition>>.

Expand Down
13 changes: 6 additions & 7 deletions css-cascade-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:mediaqueries-4; type:type; text:<media-query>

<pre class=ignored-specs>
spec:mediaqueries-5
spec:css-values-4
spec:css-values-5
spec:css-fonts-4
</pre>

Expand Down Expand Up @@ -229,12 +229,11 @@ Conditional ''@import'' Rules</h3>
</pre>
</div>

A <dfn noexport for="@import"><<media-query>></dfn> corresponds to the <code>media_query_list</code> production
and is interpreted as a <a>media query</a>,
and a <dfn noexport for="@import"><<supports-condition>></dfn> corresponds to a <code>supports_condition</code> production
and is interpreted as an ''@supports'' condition.
If a <dfn noexport for="@import"><<declaration>></dfn> (a <code>declaration</code> production) is given in place of a <<supports-condition>>,
it must be interpreted as a <code>supports_declaration_condition</code> production
The [=import conditions=] are given by
<<media-query-list>>, which is parsed and interpreted as a <a>media query list</a>,
and <<supports-condition>>, is parsed and interpreted as a [[supports query]].
If a <<declaration>> is given in place of a <<supports-condition>>,
it must be interpreted as a <<supports-decl>>
(i.e. the extra set of parentheses is implied)
and treated as a <<supports-condition>>.

Expand Down

0 comments on commit b568a7d

Please sign in to comment.