[csswg-drafts] Ambiguity or omission in list of steps for "CSS Syntax Level 3", section "4.3.4. Consume an ident-like token"? [css-syntax] (#10120)

amn has just created a new issue for https://github.com/w3c/csswg-drafts:

== Ambiguity or omission in list of steps for "CSS Syntax Level 3", section "4.3.4. Consume an ident-like token"? [css-syntax] ==
Rading [section 4.34 of "CSS Syntax Level 3"](https://www.w3.org/TR/css-syntax-3/#consume-ident-like-token) I am confused by two sentences, which I am unable to properly understand in order to, say, proceed in implementing a compliant tokenizer.

The [adjacent] sentences, quoting:

> While the next two input code points are [whitespace](https://www.w3.org/TR/css-syntax-3/#whitespace), consume the next input code point. If the next one or two input code points are U+0022 QUOTATION MARK ("), U+0027 APOSTROPHE ('), or whitespace followed by U+0022 QUOTATION MARK (") or U+0027 APOSTROPHE ('), then create a [<function-token>](https://www.w3.org/TR/css-syntax-3/#typedef-function-token) with its value set to string and return it.

It's the second sentence that is of primary concern, really. What condition does it exactly express? Between all the "or" in the sentence, I confess it reads in a manner I can't wrap my head around.

First off, if the next two input code points (previous sentence) are (both) whitespace, after consuming the next input code point (which is the first of the whitespace, necessarily), the subsequent code point is assertively whitespace, no?

And what condition is exactly being expressed with the second sentence anyway, could someone please clarify?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10120 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 22 March 2024 21:47:24 UTC