Re: [csswg-drafts] [css-ui-4] Add 'interactivity' property, per #10711 (#11178)

> > > @tabatkins @flackr How do the UA styles cause modal dialogs to make the rest of the page inert? I don't see that yet in the current UA styles.
> > 
> > 
> > That's handled by HTML. See the (recently opened) PR here: [whatwg/html#10956](https://github.com/whatwg/html/pull/10956)
> 
> I think `blocked by a modal dialog` should be defined in terms of `interactivity` (either set as a presentational hint on the root, or using an UA stylesheet rule), because otherwise `dialog:modal { interactivity: auto }` won't do anything (because `auto` is the default value. I don't think this is what the current HTML spec PR.

No one's been able to come with UA styles that work correctly for shadow DOM.

I believe `dialog:modal { interactivity: auto; }` is there to escape from inherited ancestor inertness style when the dialogs are modal in:

```html
<div style="interactivity:inert">
  <dialog></dialog>
</div>
<div inert>
  <dialog></dialog>
</div>
```


-- 
GitHub Notification of comment by lilles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/11178#issuecomment-2623868165 using your GitHub account


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

Received on Thursday, 30 January 2025 08:47:02 UTC