- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Thu, 06 Sep 2018 20:39:49 +0000
- To: public-css-archive@w3.org
I don't think there's any significant use-case difference between "want to see if a descendant has :focus" and "want to see if a descendant has :focus-visible". If you want one, there's a good chance you might want the other. (Or to put it another way, :focus is *often* not what you actually want in the first place; you usually want :focus-visible, and thus you'll probably want a -within variant if you're currently suboptimally using :focus-within.) However, if we do decide to add such a thing, I'm against just spamming more keywords into the name; that's unwieldy and you have to remember the (arbitrary) order of the modifier keywords. Instead, I'd say we should expand `:focus` into a `:focus()` functional pseudo, like `:drop()`, taking a list of keywords in any order. So you'd write `:focus(visible within)` or whatever. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3080#issuecomment-419233682 using your GitHub account
Received on Thursday, 6 September 2018 20:39:50 UTC