scoper
scoper copied to clipboard
using :root/html selectors has no effect
Again, in Chrome/Vivaldi, using ":root" selector doesn't seem to have any effect It is important, because you'd want to use ":root" or "html" to specify font-size and use "rem" size units
Thanks @eddr. Can you create an example on JSBin or JSFiddle of how you'd like to use :root or html this way? I don't see how you'd want to select :root or html in a scoped element — you could just use a standard style element in head for this.
Thanks @thomaspark! Are you asking why I'd want such a thing? Well, because :
- I have to embed/inject my code in a webpage which is not mine
- I want to use "font-size" with "rem" units, which are useful, which are defined for the ":root". And I can't change it for the whole document, because it's not mine.
Is that what you've asked?