Skip to content

Commit 0ff988f

Browse files
committed
[css-cascade] deal with WS/comments between ! important
1 parent d845de7 commit 0ff988f

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

css-cascade/Overview.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
rel=dcterms.rights>
1111
<meta content="CSS Cascading and Inheritance Level 3" name=dcterms.title>
1212
<meta content=text name=dcterms.type>
13-
<meta content=2013-06-10 name=dcterms.date>
13+
<meta content=2013-06-11 name=dcterms.date>
1414
<meta content="Håkon Wium Lie" name=dcterms.creator>
1515
<meta content="Elika J. Etemad" name=dcterms.creator>
1616
<meta content="Tab Atkins Jr." name=dcterms.creator>
@@ -29,11 +29,11 @@
2929

3030
<h1>CSS Cascading and Inheritance Level 3</h1>
3131

32-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 10 June 2013</h2>
32+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 11 June 2013</h2>
3333

3434
<dl><!--
3535
<dt>This version:
36-
<dd><a href="http://dev.w3.org/csswg/css3-cascade/">http://www.w3.org/TR/2013/WD-css3-cascade-20130610/</a>
36+
<dd><a href="http://dev.w3.org/csswg/css3-cascade/">http://www.w3.org/TR/2013/WD-css3-cascade-20130611/</a>
3737
-->
3838

3939
<dt>Latest version:
@@ -705,14 +705,14 @@ <h4 id=important-rules><span class=secno>4.2.2. </span> ‘<a
705705
(large fonts, color combinations, etc.) control over presentation.
706706

707707
<p> A declaration is ‘<a href="#important"><code
708-
class=css>!important</code></a>’ if the last two tokens in its value are
709-
the delimiter token ‘<code class=css>!</code>’ followed by the
710-
identifier token ‘<a href="#important"><code
711-
class=css>important</code></a>’. Declaring a shorthand property (e.g.,
712-
<code class=property>background</code>’) to be ‘<a
713-
href="#important"><code class=css>!important</code></a>’ is equivalent
714-
to declaring all of its sub-properties to be ‘<a href="#important"><code
715-
class=css>!important</code></a>’.
708+
class=css>!important</code></a>’ if the last two (non-whitespace,
709+
non-comment) tokens in its value are the delimiter token ‘<code
710+
class=css>!</code>’ followed by the identifier token ‘<a
711+
href="#important"><code class=css>important</code></a>’. Declaring a
712+
shorthand property (e.g., <code class=property>background</code>’) to
713+
be ‘<a href="#important"><code class=css>!important</code></a>’ is
714+
equivalent to declaring all of its sub-properties to be ‘<a
715+
href="#important"><code class=css>!important</code></a>’.
716716

717717
<p> User agent stylesheets may also contain ‘<a href="#important"><code
718718
class=css>!important</code></a>’ rules. These override all author and

css-cascade/Overview.src.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,8 @@ <h4 id='important-rules'>
471471
control over presentation.
472472

473473
<p>
474-
A declaration is ''!important'' if the last two tokens in its value are the delimiter token ''!'' followed by the identifier token ''important''.
474+
A declaration is ''!important'' if the last two (non-whitespace, non-comment) tokens
475+
in its value are the delimiter token ''!'' followed by the identifier token ''important''.
475476
Declaring a shorthand property (e.g., 'background') to be ''!important'' is equivalent to
476477
declaring all of its sub-properties to be ''!important''.
477478

0 commit comments

Comments
 (0)