Skip to content

Commit 5f67386

Browse files
committed
[css-syntax] Fix bug in ident-like token when there's no space between url( and string.
--HG-- extra : rebase_source : 4d85f840cd0aead444142f80c2bccb47f2131567
1 parent 1865112 commit 5f67386

File tree

2 files changed

+128
-134
lines changed

2 files changed

+128
-134
lines changed

css-syntax/Overview.bs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1205,11 +1205,11 @@ Consume an ident-like token</h4>
12051205
If the returned string's value is an <a>ASCII case-insensitive</a> match for "url",
12061206
and the <a>next input code point</a> is U+0028 LEFT PARENTHESIS ((),
12071207
consume it.
1208-
While the <a>next input code point</a> is <a>whitespace</a>,
1209-
consume it.
1210-
If the <a>next input token</a> is U+0022 QUOTATION MARK (")
1211-
or U+0027 APOSTROPHE (&apos;),
1212-
<a>reconsume the current input code point</a>,
1208+
While the <a title="next input code point">next two input code points</a> are <a>whitespace</a>,
1209+
consume the <a>next input code point</a>.
1210+
If the <a title="next input code point">next one or two input code points</a> are U+0022 QUOTATION MARK ("),
1211+
U+0027 APOSTROPHE (&apos;),
1212+
or <a>whitespace</a> followed by U+0022 QUOTATION MARK (") orU+0027 APOSTROPHE (&apos;),
12131213
then create a <<function-token>>
12141214
with its value set to the returned string
12151215
and return it.

0 commit comments

Comments
 (0)