csstree / csstree

A tool set for CSS including fast detailed parser, walker, generator and lexer based on W3C specs and browser implementations

Home Page:https://csstree.github.io/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When `url()` contains escaped code points in `url` it is tokenized as a function token

romainmenke opened this issue · comments

\75 Rl(foo)

This is equivalent to url(foo)

The first is tokenized as a function token, followed by an ident and )
The second is tokenized as a url token

https://www.w3.org/TR/css-syntax-3/#consume-ident-like-token

It appears as if the check for a url function name is done against the raw value instead of the unescaped ident sequence value.