Re: [csswg-drafts] [selectors] Add :modal-dialog pseudo-class (#6965)

Fullscreen elements do #<!---->3 in Blink: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/resolver/style_adjuster.cc;drc=bd14a8d6ed27dfcc3f0f2deef0d95b92de3c0b10;l=714-724

```js
  const Element* modal_element = document.ActiveModalDialog();
  if (!modal_element)
    modal_element = Fullscreen::FullscreenElementFrom(document);
  if (modal_element == element) {
    style.SetIsInert(false);
    return;
  }
  if (modal_element && element == document.documentElement()) {
    style.SetIsInert(true);
    return;
  }
```

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


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

Received on Wednesday, 27 April 2022 19:50:03 UTC