Closed jpzwarte closed 1 year ago
@jpzwarte Hm, I can't seem to reproduce this. In both Safari and Firefox I'm seeing .\:popover-open
style rules applied as expected -- e.g. the [popover]:not(.\:popover-open) { display: none; }
rule in the demo site.
I also tried adding a new rule to test (.\:popover-open { color: red; }
), and it was also applied:
Can you push a reproducible test case?
@jgerigmeyer https://codepen.io/jpzwarte/pen/dyQvRrX
Apparently the :popover-open
class does not working within the shadow DOM.
Closing, it needs a double backslash 🤦♂️
So according to the docs, the
.\:popover-open
selector should work in browsers wherepopover
isn't supported yet. I can confirm that in Safari & Firefox, the class is added to the popover element. However, also in Safari & Firefox, the style rule is never applied. Perhaps because this selector is invalid?