jensimmons / cssremedy

Start your project with a remedy for the technical debt of CSS.
Mozilla Public License 2.0
2.19k stars 112 forks source link

`inert` attribute remedy? #87

Open Malvoz opened 2 years ago

Malvoz commented 2 years ago

See https://github.com/WICG/inert/issues/180 for background.

I.e. something along the lines of:

[inert] {
  cursor: default !important;
  pointer-events: none !important;
}

[inert], [inert] * {
overflow: hidden !important; /* (https://github.com/WICG/inert/pull/33) */
-webkit-user-modify: read-only !important;
   -moz-user-modify: read-only !important;
        user-modify: read-only !important;
-webkit-user-select: none !important;
   -moz-user-select: none !important;
    -ms-user-select: none !important;
        user-select: none !important;
}
Malvoz commented 2 years ago

Similar to https://github.com/jensimmons/cssremedy/issues/71.