[css3-conditional] Clarify the definition of "literal match" in CSS.supports().

Thu, 07 Feb 2013 14:51:47 -0800

author
L. David Baron <dbaron@dbaron.org>
date
Thu, 07 Feb 2013 14:51:47 -0800
changeset 7390
610004048eff
parent 7389
7862f20a7103
child 7391
f4da51999dd9

[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.

css3-conditional/Overview.html file | annotate | diff | comparison | revisions
css3-conditional/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/css3-conditional/Overview.html	Thu Feb 07 14:42:14 2013 -0800
     1.2 +++ b/css3-conditional/Overview.html	Thu Feb 07 14:51:47 2013 -0800
     1.3 @@ -1283,8 +1283,12 @@
     1.4      arguments <var>property</var> and <var>value</var>, it must return
     1.5      <code>true</code> if <var>property</var> is a literal match for the name
     1.6      of a CSS property that the UA supports, and <var>value</var> would be
     1.7 -    successfully parsed as a supported value for that property. Otherwise, it
     1.8 -    must return <code>false</code>.
     1.9 +    successfully parsed as a supported value for that property. (Literal
    1.10 +    match means that no CSS escape processing is performed, and leading and
    1.11 +    trailing whitespace are not stripped, so any leading whitespace, trailing
    1.12 +    whitespace, or CSS escapes equivalent to the name of a property would
    1.13 +    cause the method to return <code>false</code>.) Otherwise, it must return
    1.14 +    <code>false</code>.
    1.15      <p> When invoked with a single <var>conditionText</var> argument, it must
    1.16       return <code>true</code> if <var>conditionText</var>, when parsed and
    1.17       evaluated as a <a
     2.1 --- a/css3-conditional/Overview.src.html	Thu Feb 07 14:42:14 2013 -0800
     2.2 +++ b/css3-conditional/Overview.src.html	Thu Feb 07 14:51:47 2013 -0800
     2.3 @@ -1038,6 +1038,11 @@
     2.4      When the <code title=''>supports()</code> method is invoked with two arguments <var>property</var> and <var>value</var>,
     2.5      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,
     2.6      and <var>value</var> would be successfully parsed as a supported value for that property.
     2.7 +    (Literal match means that no CSS escape processing is performed,
     2.8 +    and leading and trailing whitespace are not stripped,
     2.9 +    so any leading whitespace, trailing whitespace,
    2.10 +    or CSS escapes equivalent to the name of a property
    2.11 +    would cause the method to return <code>false</code>.)
    2.12      Otherwise, it must return <code>false</code>.
    2.13  
    2.14      <p>

mercurial