Skip to content

Commit aa5ceff

Browse files
committed
[css-cascade] Update to allow dropping parens in <<supports-condition>> when it consists of only a single declaration per WG resolution <https://lists.w3.org/Archives/Public/www-style/2015Aug/0051.html>
1 parent 04a8bb5 commit aa5ceff

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

css-cascade/Overview.bs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ Introduction</h2>
3939
The rules for finding the specified value for all properties on all elements in the document are described in this specification.
4040
The rules for finding the specified values in the page context and its margin boxes are described in [[CSS3PAGE]].
4141

42+
<h3 id="placement">
43+
Module Interactions</h3>
44+
45+
<p>This module replaces and extends
46+
the rules for assigning property values, aascading, and inheritance defined in [[!CSS21]] chapter 6.
47+
48+
<p>Other CSS modules may expand the definitions of some of the syntax and features defined here.
49+
For example, the Media Queries Level 4 specification,
50+
when combined with this module, expands the definition of
51+
the <<media-query>> value type as used in this specification.
52+
4253
<h2 id="at-import">
4354
Importing Style Sheets: the ''@import'' rule</h2>
4455

@@ -63,8 +74,12 @@ Importing Style Sheets: the ''@import'' rule</h2>
6374
and the optional <<supports-condition>> and <<media-query-list>>
6475
(collectively, the <dfn>import conditions</dfn>)
6576
state the conditions under which it applies.
77+
A <dfn><<media-query>></dfn> corresponds to the <code>media_query_list</code> production and is interpreted as a <a>media query</a>,
78+
and a <dfn><<supports-condition>></dfn> corresponds to either a <code>supports_condition</code> production
79+
or a <code>declaration</code> production interpreted as a <code>supports_declaration_condition</code> production
80+
and is interpreted as an ''@supports'' condition.
6681

67-
Issue: Feedback on the <<supports-condition>> syntax is hereby solicited,
82+
Issue: Feedback on the the <css>supports()</css> syntax is hereby solicited,
6883
since none so far has been received.
6984

7085
If a <<string>> is provided,
@@ -86,9 +101,9 @@ Importing Style Sheets: the ''@import'' rule</h2>
86101
(Specifying ''@media/all'' for the <<media-query-list>> has the same effect.)
87102

88103
The evaluation and full syntax of the <a>import conditions</a>
89-
is defined by the <a href="http://www.w3.org/TR/css3-mediaqueries/">Media Queries</a> [[!MEDIAQ]]
104+
are defined by the <a href="http://www.w3.org/TR/css3-mediaqueries/">Media Queries</a> [[!MEDIAQ]]
90105
and <a href="http://www.w3.org/TR/css-conditional/">CSS Conditional Rules</a> [[!CSS3-CONDITIONAL]] specifications.
91-
If the conditions do not match,
106+
If the <a>import conditions</a> do not match,
92107
the rules in the imported stylesheet do not apply,
93108
exactly as if the imported stylesheet were wrapped in ''@media'' and/or ''@supports'' blocks with the given conditions.
94109

0 commit comments

Comments
 (0)