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

The top layer is a stacking context that is above all the rest of the content.

> If this stacking happens automatically, how would I select the first dialog in that example (and it's children, such as the custom select) and move it to the top-most layer?

You have to use `showModal` to put the dialog in the top layer. All of the components of it need to be in the subtree. If there are two dialogs, the one that is later in regular DOM paint order or has higher z-index wins.

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


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

Received on Wednesday, 11 May 2022 19:06:06 UTC