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

> If there are two dialogs, the one that is later in regular DOM paint order or has higher z-index wins.

Quick correction: each top layer element has its own stacking context, so `z-index` can’t help you here. The top layer is a “stack”, and whichever element is put into the top layer last is “on top”. To put the first dialog on top of the second (after they’re both there already), you’d need to remove and re-add the first one, which will bring it to the top of the stack.

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


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

Received on Thursday, 12 May 2022 01:45:42 UTC