Colon-Prefixed Classes Break :scope Selectors in querySelector/querySelectorAll #3692
Labels
has to-upstream test
This bug has a failing to-upstream web platform test waiting to be fixed
selectors
CSS Selectors support
Basic info:
18.15.0
24.0.0
Minimal reproduction case
How does similar code behave in browsers?
This code works fine in web browsers.
Other Details
jsdom
appears to substitute the:scope
selector with whatever part of theX:
-prefixed class name comes afterX
.If I change the
class="sm:block"
to e.g.class="anything-not-colon-prefixed sm:block"
, it works. It seems the problem only occurs when the only classes defined on the element are those with a:
prefix.Stack Trace
The text was updated successfully, but these errors were encountered: