WICG / inert

Polyfill for the inert attribute and property.
Other
922 stars 79 forks source link

Styles are too easily overridden #180

Open Malvoz opened 2 years ago

Malvoz commented 2 years ago

Not having styles applied using !important declarations makes the attribute feel less robust than I'd like.

I tried the attribute on a purely decorative map (from the popular Leaflet JS library), but in many cases pointer-events: none was overridden due to their internal use of pointer-events: auto.

In https://github.com/WICG/inert/pull/33, some styles have !important declarations, can they all have? Or should it be left up to the author? Similar to [hidden] { display: none !important; } (https://github.com/jensimmons/cssremedy/issues/71#issuecomment-771180150)?