Re: [w3ctag/design-reviews] CSS Selectors 4, :focus-visible. (#233)

Maybe this is my lack of understanding, but if I target an element with both `:focus` *and* `:focus-visible` in a stylesheet, won't the `:focus` rule make the `:focus-visible` rule never work? (Since `:focus` always applies when an element is in focus, and `:focus-visible` conditionally applies?) So, if I, as a developer, want to start using `:focus-visible` in my stylesheet for UA's that support it, but keep `:focus` around for those that don't, I guess I must resort to @supports? Or is it understood somehow that `:focus-visible` wins over `:focus` assuming specificity is otherwise equal?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/233#issuecomment-382006734

Received on Tuesday, 17 April 2018 14:11:38 UTC