Re: [csswg-drafts] [selectors] Add :role() pseudo-class (#3596)

@bkardell At first, I wondered how `:role(foo)` would be any different from `[role=foo]`, but then I realized that attribute selectors work on explicitly specified values while pseudo-classes can work on implicit values. Also, IDs and classes are not predefined by an external body while ARIA roles and BCP47 language codes are. 

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

Received on Tuesday, 5 February 2019 21:16:32 UTC