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

> Ideally you'd be able to define HTML inertness in terms of UA styles if we introduce something like this

We could certainly try to define HTML inertness as a UA stylesheet rule:
```
[inert] {
  visibility: inert;
}
```

We would need to measure how often sites are specifically adding `visibility: visible` within `inert` subtrees today to get an idea how much existing content would change. One of the advantages of using a new property would be that we could do this without existing content changing.

We might still want an exception for the dialog case to be unable to remove inertness outside of the modal dialog, though I don't think this breaks specifying HTML inert in terms of CSS inertness.

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


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

Received on Wednesday, 18 September 2024 17:09:59 UTC