-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should open dialog
elements match :open
?
#8625
Comments
cc @whatwg/css |
No strong opinion, but yeah, seems like it's an appropriate match for the pseudo, and authors would probably expect it. It's certainly "an element that has both open and closed states". (And remember we have the :closed complementary pseudo-class!) |
Oh, by "no strong opinion" I apparently mean "yes, I wrote that details was an exemplar element for the pseudo-class in the spec". So yeah, please define |
I think it's a good idea, given the open attribute doesn't necessarily reflect the state (for dialog specifically). We should probably also change the default UA styles too. |
I still think we could fix this. Someone just needs to sign up to drive #5802 to completion. (I don't think I have the bandwidth to be that person, unfortunately.) #5802 (comment) is a fairly concrete proposal, although were was some followup that might be worth resolving. |
@josepharhar: given #9077, this can be closed? |
No, that PR is for the popover attribute, not dialog elements. |
So the pseudo-class for popover was renamed to We can and should still make |
Well, someone would first have to define that mapping in HTML's Pseudo-classes section. The Selectors specification gives host-agnostic guidance so we still need to define exactly when non-generic things defined therein match. cc @tabatkins |
This was brought up here: #8221 (comment)
The new
popover
attribute adds the:open
pseudo-selector which matches elements with the popover attribute when they are open and are in the top layer. It would make sense fordialog
elements to also match this pseudo selector when they are open.@mfreed7 @annevk
The text was updated successfully, but these errors were encountered: