Re: [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)

I agree. To put it more verbosely, it means *"if the next input code point is U+0022 QUOTATION MARK (") or U+0027 APOSTROPHE ('), or if the next two input code points are a whitespace followed by U+0022 QUOTATION MARK (") or U+0027 APOSTROPHE (')", ...*.

Although it seems more correct not to consume leading whitespaces in this algorithm (see #3600), I suspect this may be no longer required. It could just be *"consume as much whitespace as possible; if the next input code points is [a quote then] create a `<function-token>`"*.

That said, in Chrome, `url( /**/"img.jpg")` is invalid but `url( /**/img.jpg)` is valid, whereas both are valid in FF, so there might back-compatibility at play here, but no corresponding case on WPT.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10120#issuecomment-2016423422 using your GitHub account


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

Received on Saturday, 23 March 2024 09:22:33 UTC