Skip to content

Commit a676651

Browse files
author
Simon Pieters
committed
[cssom] Hook into css-syntax for 'parse a CSS value'
1 parent eb5e43f commit a676651

2 files changed

Lines changed: 24 additions & 20 deletions

File tree

cssom/Overview.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<h1>CSS Object Model (CSSOM)</h1>
2828

2929

30-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 11 June 2013</h2>
30+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 12 June 2013</h2>
3131

3232
<dl>
3333

@@ -101,7 +101,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
101101
can be found in the
102102
<a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em>
103103

104-
<p class="dontpublish">This is the 11 June 2013 Editor's Draft of CSSOM. Please send comments to
104+
<p class="dontpublish">This is the 12 June 2013 Editor's Draft of CSSOM. Please send comments to
105105
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
106106
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
107107
with <samp>[cssom]</samp> at the start of the subject line.
@@ -2385,15 +2385,17 @@ <h3 id="css-values"><span class="secno">6.6 </span>CSS Values</h3>
23852385

23862386
<h4 id="parsing-css-values"><span class="secno">6.6.1 </span>Parsing CSS Values</h4>
23872387

2388-
<p>To <dfn id="parse-a-css-value">parse a CSS value</dfn> for a given
2389-
<var>property</var> means to a parse the given value according to
2390-
the definition of the property that is an
2391-
<a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for
2392-
<var>property</var> in the CSS specification, if <var>property</var> is defined to be
2393-
case-insensitive, or otherwise that is a
2394-
<a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for <var>property</var> in the
2395-
CSS specification. If the given value is <a href="#ignored">ignored</a> return null.
2396-
Otherwise return the CSS value for the given <var>property</var>.</p>
2388+
<p>To <dfn id="parse-a-css-value">parse a CSS value</dfn> <var>value</var> for a given
2389+
<var>property</var> means to follow these steps:
2390+
2391+
<ol>
2392+
<li><p>Let <var>list</var> be the value returned by invoking <a class="external" data-anolis-spec="csssyntax" href="http://dev.w3.org/csswg/css-syntax/#parse-a-list-of-component-values0">parse a list of component values</a> from <var>value</var>.
2393+
<li><p>Match <var>list</var> against the grammar for the property that is an <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#ascii-case-insensitive">ASCII case-insensitive</a> match for
2394+
<var>property</var> in the CSS specification, if <var>property</var> is defined to be case-insensitive, or otherwise that is a
2395+
<a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#case-sensitive">case-sensitive</a> match for <var>property</var> in the CSS specification.
2396+
<li><p>If the above step failed, return null.
2397+
<li><p>Return <var>list</var>.
2398+
</ol>
23972399

23982400
<p class="note">"<code title="">!important</code>" declarations are not
23992401
part of the property value space and will therefore cause

cssom/Overview.src.html

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2308,15 +2308,17 @@ <h3>CSS Values</h3>
23082308

23092309
<h4>Parsing CSS Values</h4>
23102310

2311-
<p>To <dfn>parse a CSS value</dfn> for a given
2312-
<var>property</var> means to a parse the given value according to
2313-
the definition of the property that is an
2314-
<span data-anolis-spec=dom>ASCII case-insensitive</span> match for
2315-
<var>property</var> in the CSS specification, if <var>property</var> is defined to be
2316-
case-insensitive, or otherwise that is a
2317-
<span data-anolis-spec=dom>case-sensitive</span> match for <var>property</var> in the
2318-
CSS specification. If the given value is <span>ignored</span> return null.
2319-
Otherwise return the CSS value for the given <var>property</var>.</p>
2311+
<p>To <dfn>parse a CSS value</dfn> <var>value</var> for a given
2312+
<var>property</var> means to follow these steps:
2313+
2314+
<ol>
2315+
<li><p>Let <var>list</var> be the value returned by invoking <span data-anolis-spec=csssyntax>parse a list of component values</span> from <var>value</var>.
2316+
<li><p>Match <var>list</var> against the grammar for the property that is an <span data-anolis-spec=dom>ASCII case-insensitive</span> match for
2317+
<var>property</var> in the CSS specification, if <var>property</var> is defined to be case-insensitive, or otherwise that is a
2318+
<span data-anolis-spec=dom>case-sensitive</span> match for <var>property</var> in the CSS specification.
2319+
<li><p>If the above step failed, return null.
2320+
<li><p>Return <var>list</var>.
2321+
</ol>
23202322

23212323
<p class="note">"<code title>!important</code>" declarations are not
23222324
part of the property value space and will therefore cause

0 commit comments

Comments
 (0)