@@ -2386,7 +2386,7 @@ Consume a declaration</h4>
2386
2386
<a>Consume the next input token</a> .
2387
2387
Create a new declaration
2388
2388
with its name set to the value of the <a>current input token</a>
2389
- and its value initially set to the empty list.
2389
+ and its value initially set to the empty [= list=] .
2390
2390
2391
2391
<ol>
2392
2392
<li>
@@ -2400,6 +2400,10 @@ Consume a declaration</h4>
2400
2400
2401
2401
Otherwise, <a>consume the next input token</a> .
2402
2402
2403
+ <li>
2404
+ While the <a>next input token</a> is a <<whitespace-token>> ,
2405
+ <a>consume the next input token</a> .
2406
+
2403
2407
<li>
2404
2408
As long as the <a>next input token</a> is anything other than an <<EOF-token>> ,
2405
2409
<a>consume a component value</a>
@@ -2412,6 +2416,10 @@ Consume a declaration</h4>
2412
2416
remove them from the declaration's value
2413
2417
and set the declaration's <var> important</var> flag to true.
2414
2418
2419
+ <li>
2420
+ While the last token in the declaration's value is a <<whitespace-token>> ,
2421
+ [=list/remove=] that token.
2422
+
2415
2423
<li>
2416
2424
Return the declaration.
2417
2425
</ol>
@@ -3427,6 +3435,8 @@ Changes from the 20 February 2014 Candidate Recommendation</h3>
3427
3435
3428
3436
* If the very first rule in the sheet is a ''@charset'' , dropped it during parsing.
3429
3437
3438
+ * Trimmed whitespace from the beginning/ending of a declaration's value during parsing.
3439
+
3430
3440
The following editorial changes were made:
3431
3441
3432
3442
* The "Consume a string token" algorithm was changed to allow calling it without specifying an explicit ending token,
0 commit comments