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

I don't think the top layer should be exposed to CSS, it is an implementation detail that is meant to be abstracted by the APIs that use it. 

Regarding having two top layers, I think it would make things unnecessarily complicated, developers should just call the right methods in the right order IMO.

I'm open to a :modal-dialog pseudo class (all 3 browsers have it implemented in some fashion internally), but I personally don't see the appeal given the `[open]` selector that can be used. It's uncommon for developers to use the same dialog in both a modal and non-modal fashion.



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


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

Received on Friday, 15 April 2022 07:38:32 UTC