@@ -2386,7 +2386,7 @@ Consume a declaration</h4>
23862386 <a>Consume the next input token</a> .
23872387 Create a new declaration
23882388 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=] .
23902390
23912391 <ol>
23922392 <li>
@@ -2400,6 +2400,10 @@ Consume a declaration</h4>
24002400
24012401 Otherwise, <a>consume the next input token</a> .
24022402
2403+ <li>
2404+ While the <a>next input token</a> is a <<whitespace-token>> ,
2405+ <a>consume the next input token</a> .
2406+
24032407 <li>
24042408 As long as the <a>next input token</a> is anything other than an <<EOF-token>> ,
24052409 <a>consume a component value</a>
@@ -2412,6 +2416,10 @@ Consume a declaration</h4>
24122416 remove them from the declaration's value
24132417 and set the declaration's <var> important</var> flag to true.
24142418
2419+ <li>
2420+ While the last token in the declaration's value is a <<whitespace-token>> ,
2421+ [=list/remove=] that token.
2422+
24152423 <li>
24162424 Return the declaration.
24172425 </ol>
@@ -3427,6 +3435,8 @@ Changes from the 20 February 2014 Candidate Recommendation</h3>
34273435
34283436 * If the very first rule in the sheet is a ''@charset'' , dropped it during parsing.
34293437
3438+ * Trimmed whitespace from the beginning/ending of a declaration's value during parsing.
3439+
34303440 The following editorial changes were made:
34313441
34323442 * The "Consume a string token" algorithm was changed to allow calling it without specifying an explicit ending token,
0 commit comments