Skip to content

Commit 042f955

Browse files
committed
[css-conditional] Allow parens to be dropped from single-argument supports() method calls per WG resolution. <https://lists.w3.org/Archives/Public/www-style/2015Aug/0051.html>
1 parent a84e7df commit 042f955

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

css-conditional/Overview.bs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,8 @@ partial interface CSS {
10251025
<p>
10261026
When invoked with a single <var>conditionText</var> argument,
10271027
it must return <code>true</code> if <var>conditionText</var>,
1028-
when parsed and evaluated as a <code>supports_condition</code>,
1028+
when either parsed and evaluated as a <code>supports_condition</code>
1029+
or parsed as a <code>declaration</code>, wrapped in implied parentheses, and evaluated as a <code>supports_condition</code>,
10291030
would return true.
10301031
Otherwise, it must return <code>false</code>.
10311032
</dl>
@@ -1037,6 +1038,9 @@ Changes</h2>
10371038
<a href="https://www.w3.org/TR/2013/CR-css3-conditional-20130404/">4 April 2013 Candidate Recommendation</a>:
10381039

10391040
<ul>
1041+
<li>Allow the <code title=''>supports()</code> method
1042+
to imply parentheses for simple declarations,
1043+
for consistency with the ''@import'' rule’s ''supports()'' function.
10401044
<li>Fixed missing semicolons in IDL code.
10411045
<li>Updated links, terminology, and example code in response to changes to other modules.
10421046
</ul>

0 commit comments

Comments
 (0)