You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each language range in :lang() must be a valid CSS <ident> or <string>. (Thus language ranges containing asterisks, for example, must be either correctly escaped or quoted as strings, e.g. :lang(*-Latn) or :lang("*-Latn").)
CSSTree throws if language ranges are quoted.
import{parse}from'css-tree';constast=parse(':lang("*-Latn")',{context: 'selectorList'});// throws `SyntaxError: Identifier is expected`
It succeeds if they are escaped, e.g. :lang(\*-Latn).
The text was updated successfully, but these errors were encountered:
According to the spec: The Language Pseudo-class: :lang()
CSSTree throws if language ranges are quoted.
It succeeds if they are escaped, e.g.
:lang(\*-Latn)
.The text was updated successfully, but these errors were encountered: