Skip to content

Commit 6bab6df

Browse files
committed
[css3-syntax] Remove the 'can be made important' notion. It's simpler to just push that into the validity checking step.
1 parent bb187f4 commit 6bab6df

2 files changed

Lines changed: 5 additions & 39 deletions

File tree

css3-syntax/Overview.html

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2876,14 +2876,6 @@ <h3 id=definitions0><span class=secno>5.2. </span> Definitions</h3>
28762876
(0x20) to the value of each codepoint between U+0041 LATIN CAPITAL LETTER
28772877
A (A) and U+005A LATIN CAPITAL LETTER Z (Z), inclusive, and then compare
28782878
them on a codepoint-by-codepoint basis.
2879-
2880-
<dt>declaration that <dfn id=can-be-made-important>can be made
2881-
important</dfn>
2882-
2883-
<dd> Declarations that are properties can be made important. Declarations
2884-
that are descriptors cannot be made important.
2885-
<p class=note> Generally, properties are declarations inside of style
2886-
rules, and descriptors are declarations inside of at-rules.
28872879
</dl>
28882880

28892881
<h3 id=parser-state-machine><span class=secno>5.3. </span> Parser State
@@ -3263,17 +3255,10 @@ <h4 id=declaration-important-mode><span class=secno>5.3.8. </span> <dfn
32633255
href="#ascii-case-insensitive"><i>ASCII case-insensitive</i></a> match
32643256
for "important"
32653257

3266-
<dd> If the <a href="#current-declaration"><i>current declaration</i></a>
3267-
is one that <a href="#can-be-made-important"><i>can be made
3268-
important</i></a>, set the important flag of the <a
3269-
href="#current-declaration"><i>current declaration</i></a> to true, and
3270-
switch to the <a href="#declaration-end-mode0"><i>declaration-end
3258+
<dd> Set the important flag of the <a
3259+
href="#current-declaration"><i>current declaration</i></a> to true.
3260+
Switch to the <a href="#declaration-end-mode0"><i>declaration-end
32713261
mode</i></a>.
3272-
<p> Otherwise, this is a <i>parse error</i>. Unset the <a
3273-
href="#current-declaration"><i>current declaration</i></a>. Switch to
3274-
the <a href="#next-declaration-error-mode0"><i>next-declaration error
3275-
mode</i></a>. <a href="#reconsume-the-current-input-token"><i>Reconsume
3276-
the current input token</i></a>.
32773262

32783263
<dt>anything else
32793264

@@ -4086,9 +4071,6 @@ <h2 class=no-num id=index> Index</h2>
40864071
<li>Bad-URL state, <a href="#bad-url-state0"
40874072
title="section 4.4.22."><strong>4.4.22.</strong></a>
40884073

4089-
<li>can be made important, <a href="#can-be-made-important"
4090-
title="section 5.2."><strong>5.2.</strong></a>
4091-
40924074
<li>Comment state, <a href="#comment-state0"
40934075
title="section 4.4.6."><strong>4.4.6.</strong></a>
40944076

css3-syntax/Overview.src.html

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,15 +2357,6 @@ <h3>
23572357
and U+005A LATIN CAPITAL LETTER Z (Z),
23582358
inclusive,
23592359
and then compare them on a codepoint-by-codepoint basis.
2360-
2361-
<dt>declaration that <dfn>can be made important</dfn>
2362-
<dd>
2363-
Declarations that are properties can be made important.
2364-
Declarations that are descriptors cannot be made important.
2365-
2366-
<p class='note'>
2367-
Generally, properties are declarations inside of style rules,
2368-
and descriptors are declarations inside of at-rules.
23692360
</dl>
23702361

23712362
<h3>
@@ -2743,15 +2734,8 @@ <h4>
27432734

27442735
<dt>ident token whose value is an <i>ASCII case-insensitive</i> match for "important"
27452736
<dd>
2746-
If the <i>current declaration</i> is one that <i>can be made important</i>,
2747-
set the important flag of the <i>current declaration</i> to true,
2748-
and switch to the <i>declaration-end mode</i>.
2749-
2750-
<p>
2751-
Otherwise, this is a <i>parse error</i>.
2752-
Unset the <i>current declaration</i>.
2753-
Switch to the <i>next-declaration error mode</i>.
2754-
<i>Reconsume the current input token</i>.
2737+
Set the important flag of the <i>current declaration</i> to true.
2738+
Switch to the <i>declaration-end mode</i>.
27552739

27562740
<dt>anything else
27572741
<dd>

0 commit comments

Comments
 (0)