Skip to content

Commit 75e7030

Browse files
committed
[css3-conditional] Clarify the definition of "literal match" in CSS.supports().
This edits in the fifth resolution in http://lists.w3.org/Archives/Public/www-style/2012Aug/0749.html in a clearer way.
1 parent 6278711 commit 75e7030

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

css3-conditional/Overview.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,8 +1283,12 @@ <h3 id=the-css-interface><span class=secno>7.6. </span> The <a
12831283
arguments <var>property</var> and <var>value</var>, it must return
12841284
<code>true</code> if <var>property</var> is a literal match for the name
12851285
of a CSS property that the UA supports, and <var>value</var> would be
1286-
successfully parsed as a supported value for that property. Otherwise, it
1287-
must return <code>false</code>.
1286+
successfully parsed as a supported value for that property. (Literal
1287+
match means that no CSS escape processing is performed, and leading and
1288+
trailing whitespace are not stripped, so any leading whitespace, trailing
1289+
whitespace, or CSS escapes equivalent to the name of a property would
1290+
cause the method to return <code>false</code>.) Otherwise, it must return
1291+
<code>false</code>.
12881292
<p> When invoked with a single <var>conditionText</var> argument, it must
12891293
return <code>true</code> if <var>conditionText</var>, when parsed and
12901294
evaluated as a <a

css3-conditional/Overview.src.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,11 @@ <h3 id='the-css-interface'>
10381038
When the <code title=''>supports()</code> method is invoked with two arguments <var>property</var> and <var>value</var>,
10391039
it must return <code>true</code> if <var>property</var> is a literal match for the name of a CSS property that the UA supports,
10401040
and <var>value</var> would be successfully parsed as a supported value for that property.
1041+
(Literal match means that no CSS escape processing is performed,
1042+
and leading and trailing whitespace are not stripped,
1043+
so any leading whitespace, trailing whitespace,
1044+
or CSS escapes equivalent to the name of a property
1045+
would cause the method to return <code>false</code>.)
10411046
Otherwise, it must return <code>false</code>.
10421047

10431048
<p>

0 commit comments

Comments
 (0)