Skip to content

Commit ab0dc43

Browse files
committed
[css-syntax] Use a variable to make it more explicit what the referents are later in the algorithm. Fixes w3c#685.
1 parent 87749e6 commit ab0dc43

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

css-syntax/Overview.bs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,13 +1084,13 @@ Consume a numeric token</h4>
10841084
This section describes how to <dfn>consume a numeric token</dfn> from a stream of <a>code points</a>.
10851085
It returns either a <<number-token>>, <<percentage-token>>, or <<dimension-token>>.
10861086

1087-
<a>Consume a number</a>.
1087+
<a>Consume a number</a> and let |number| be the result.
10881088

10891089
If the <a lt="next input code point">next 3 input code points</a> <a>would start an identifier</a>,
10901090
then:
10911091

10921092
<ol>
1093-
<li>Create a <<dimension-token>> with the same value and type flag as the returned number,
1093+
<li>Create a <<dimension-token>> with the same value and type flag as |number|,
10941094
and a unit set initially to the empty string.
10951095

10961096
<li><a>Consume a name</a>.
@@ -1102,11 +1102,11 @@ Consume a numeric token</h4>
11021102
Otherwise,
11031103
if the <a>next input code point</a> is U+0025 PERCENTAGE SIGN (%),
11041104
consume it.
1105-
Create a <<percentage-token>> with the same value as the returned number,
1105+
Create a <<percentage-token>> with the same value as |number|,
11061106
and return it.
11071107

11081108
Otherwise,
1109-
create a <<number-token>> with the same value and type flag as the returned number,
1109+
create a <<number-token>> with the same value and type flag as |number|,
11101110
and return it.
11111111

11121112

@@ -1116,9 +1116,9 @@ Consume an ident-like token</h4>
11161116
This section describes how to <dfn>consume an ident-like token</dfn> from a stream of <a>code points</a>.
11171117
It returns an <<ident-token>>, <<function-token>>, <<url-token>>, or <<bad-url-token>>.
11181118

1119-
<a>Consume a name</a>.
1119+
<a>Consume a name</a>, and let |string| be the result.
11201120

1121-
If the returned string's value is an <a>ASCII case-insensitive</a> match for "url",
1121+
If |string|’s value is an <a>ASCII case-insensitive</a> match for "url",
11221122
and the <a>next input code point</a> is U+0028 LEFT PARENTHESIS ((),
11231123
consume it.
11241124
While the <a lt="next input code point">next two input code points</a> are <a>whitespace</a>,
@@ -1127,7 +1127,7 @@ Consume an ident-like token</h4>
11271127
U+0027 APOSTROPHE (&apos;),
11281128
or <a>whitespace</a> followed by U+0022 QUOTATION MARK (") or U+0027 APOSTROPHE (&apos;),
11291129
then create a <<function-token>>
1130-
with its value set to the returned string
1130+
with its value set to |string|
11311131
and return it.
11321132
Otherwise,
11331133
<a>consume a url token</a>,
@@ -1137,12 +1137,12 @@ Consume an ident-like token</h4>
11371137
if the <a>next input code point</a> is U+0028 LEFT PARENTHESIS ((),
11381138
consume it.
11391139
Create a <<function-token>>
1140-
with its value set to the returned string
1140+
with its value set to |string|
11411141
and return it.
11421142

11431143
Otherwise,
11441144
create an <<ident-token>>
1145-
with its value set to the returned string
1145+
with its value set to |string|
11461146
and return it.
11471147

11481148

0 commit comments

Comments
 (0)