Re: [csswg-drafts] [selectors-4] confilct between HTML :focus and CSS :focus

My analysis [from 
2014](https://lists.w3.org/Archives/Public/www-style/2014Nov/0291.html)

> Looking at webdevdata from last year, I see 295 sites out of 102,000
 pages  
using bare :focus or *focus. About 99% is setting outline:0 but one is
 a  
menu implemented in CSS with :focus, and some also use $("*:focus") in
 JS  
which would return the wrong element if ancestors matched. So I think 
we  
shouldn't change :focus.

I don't have a strong opinion about (2) vs (3). If the wording of 
`:focus` should change in HTML as a result of this issue, to use a new
 hook or so, that would be OK I believe.

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

Received on Monday, 5 December 2016 08:59:24 UTC