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
More broadly, the function syntax for <pseudo‑class‑selector> is specified as taking <any‑value>, meaning that the current parser is too restrictive, and also too lax, as :is(1 - 2) should result in a warning, since 1 - 2 is not a valid selector, but because :is(…) takes a <forgiving‑selector‑list>, it’s equivalent to :is() at runtime, which is a valid selector that matches nothing.
The correct implementation would be to parse pseudo‑class arguments as <any‑value>, rather than as [ <complex‑selector‑list>|<calc‑sum> ]? as it currently does, and then perform stricter validation of the arguments based on the pseudo‑class/pseudo‑element itself.
The text was updated successfully, but these errors were encountered:
The
:has(…)
pseudo‑class, which is being prototyped in Blink, is specified as taking a<relative‑selector‑list>
.See also
More broadly, the function syntax for
<pseudo‑class‑selector>
is specified as taking<any‑value>
, meaning that the current parser is too restrictive, and also too lax, as:is(1 - 2)
should result in a warning, since1 - 2
is not a valid selector, but because:is(…)
takes a<forgiving‑selector‑list>
, it’s equivalent to:is()
at runtime, which is a valid selector that matches nothing.The correct implementation would be to parse pseudo‑class arguments as
<any‑value>
, rather than as[ <complex‑selector‑list> | <calc‑sum> ]?
as it currently does, and then perform stricter validation of the arguments based on the pseudo‑class/pseudo‑element itself.The text was updated successfully, but these errors were encountered: