[csswg-drafts] [selectors] Pseudo-class for details

AndySky21 has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [selectors] Pseudo-class for details ==
https://drafts.csswg.org/selectors/#pseudo-classes

Given the description for pseudo-classes and the fact that element 
interactivity is meant to be handled by UAs instead of relying upon 
scripts, it would be logical and consistent with other interactive 
elements if `<details>` open state were matched by an `:open` pseudo 
class.
On the other hand (and as stated by @chaals), this would would provide
 a CSS styling hook without the need for UAs to add/remove a content 
attribute according to user interaction. As a consequence, 
`<details>.open` IDL property will be allowed to reflect the element 
state instead of the content attribute.

Related issue: https://github.com/w3c/html/issues/600

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/611 using your GitHub 
account

Received on Monday, 17 October 2016 10:02:15 UTC