Skip to content

Commit 3296f7a

Browse files
committed
[css3-conditional] Describe requirements for conditionText getter on CSSSupportsRule.
This implements the resolution in http://lists.w3.org/Archives/Public/www-style/2012Aug/0749.html to address the second point in http://lists.w3.org/Archives/Public/www-style/2013Feb/0228.html which is Issue 8 in the Last Call Disposition of Comments. It also adds a parenthetical to clarify the issue rejected in http://lists.w3.org/Archives/Public/www-style/2012Dec/0102.html
1 parent 9301411 commit 3296f7a

2 files changed

Lines changed: 38 additions & 1 deletion

File tree

css3-conditional/Overview.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,7 @@ <h3 id=the-cssmediarule-interface><span class=secno>7.4. </span> The <a
12141214
with the ‘<code class=css>@media</code>’ rule.
12151215

12161216
<dt><code>conditionText</code> of type <code>DOMString</code>
1217+
(CSSMediaRule-specific definition for attribute on CSSConditionRule)
12171218

12181219
<dd>The <code>conditionText</code> attribute (defined on the <a
12191220
href="#cssconditionrule"><code>CSSConditionRule</code></a> parent rule),
@@ -1231,6 +1232,24 @@ <h3 id=the-csssupportsrule-interface><span class=secno>7.5. </span> The <a
12311232

12321233
<pre class=idl>interface CSSSupportsRule : CSSConditionRule {
12331234
}</pre>
1235+
1236+
<dl class=idl-attributes>
1237+
<dt><code>conditionText</code> of type <code>DOMString</code>
1238+
(CSSSupportsRule-specific definition for attribute on CSSConditionRule)
1239+
1240+
<dd>The <code>conditionText</code> attribute (defined on the <a
1241+
href="#cssconditionrule"><code>CSSConditionRule</code></a> parent rule),
1242+
on getting, must return the condition that was specified, without any
1243+
logical simplifications, so that the returned condition will evaluate to
1244+
the same result as the specified condition in any conformant
1245+
implementation of this specification (including implementations that
1246+
implement future extensions allowed by the <a
1247+
href="#general_enclosed"><i>general_enclosed</i></a> exensibility
1248+
mechanism in this specification). In other words, token stream
1249+
simplifications are allowed (such as reducing whitespace to a single
1250+
space or omitting it in cases where it is known to be optional), but
1251+
logical simplifications are not allowed.
1252+
</dl>
12341253
<!--
12351254
<h3 id="the-cssdocumentrule-interface">
12361255
The <code>CSSDocumentRule</code> interface</h3>

css3-conditional/Overview.src.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ <h3 id="the-cssmediarule-interface">
973973
<dd>The <code>media</code> attribute must return a <code>MediaList</code> object
974974
for the list of media queries specified with the ''@media'' rule.
975975

976-
<dt><code>conditionText</code> of type <code>DOMString</code>
976+
<dt><code>conditionText</code> of type <code>DOMString</code> (CSSMediaRule-specific definition for attribute on CSSConditionRule)
977977
<dd>The <code>conditionText</code> attribute (defined on the <code>CSSConditionRule</code> parent rule),
978978
on getting, must return the value of <code>media.mediaText</code> on the rule.
979979

@@ -990,6 +990,24 @@ <h3 id="the-csssupportsrule-interface">
990990
<pre class='idl'>interface CSSSupportsRule : CSSConditionRule {
991991
}</pre>
992992

993+
<dl class='idl-attributes'>
994+
<dt><code>conditionText</code> of type <code>DOMString</code> (CSSSupportsRule-specific definition for attribute on CSSConditionRule)
995+
<dd>The <code>conditionText</code> attribute (defined on the <code>CSSConditionRule</code> parent rule),
996+
on getting, must return the condition that was specified,
997+
without any logical simplifications,
998+
so that the returned condition will evaluate to the same result
999+
as the specified condition
1000+
in any conformant implementation of this specification
1001+
(including implementations that implement future extensions
1002+
allowed by the <i>general_enclosed</i> exensibility mechanism in this specification).
1003+
In other words,
1004+
token stream simplifications are allowed
1005+
(such as reducing whitespace to a single space
1006+
or omitting it in cases where it is known to be optional),
1007+
but logical simplifications are not allowed.
1008+
1009+
</dl>
1010+
9931011
<!--
9941012
<h3 id="the-cssdocumentrule-interface">
9951013
The <code>CSSDocumentRule</code> interface</h3>

0 commit comments

Comments
 (0)