Style shadowRoot

Allow stylus to target elements in shadow-root

Versione datata 10/02/2023. Vedi la nuova versione l'ultima versione.

Autore
Achernar
Valutazione
0 0 0
Versione
0.1
Creato il
10/02/2023
Aggiornato il
10/02/2023
Dimensione
4,42 KB
Licenza
Non disponibile
Applica a

This userscript allows users of Stylus to style shadow-root elements that are out of reach of global stylesheets.

Any style rule whose selector includes :host or :host-context will be injected into the shadow-root nodes.

By default the userscript is not executed on any website. You'll have to edit the style settings (eg. in tampermonkey) open the userstyle, go to the style's "settings" tab and add the mask (don't forget the *) of the website(s) you want to run it on.

To test: