Re: [csswg-drafts] [css-ui] Support setting offscreen content inert (#10711)

> it seems to me that this should no longer be an inherited property

My concern is that removing the inheritance increases the complexity - developers might implement error-prone workarounds that could actually worsen accessibility rather than improve it

Future "clever" css tricks might be:

```css
html:has(.focus-trap) :where(*, *::before,*::after) {
  interactivity: inert;
}

.focus-trap *,
.focus-trap *::before,
.focus-trap *::after {
  interactivity: auto;
}
```



-- 
GitHub Notification of comment by jantimon
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10711#issuecomment-2855490844 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 6 May 2025 18:10:38 UTC