W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2016

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

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Mon, 05 Dec 2016 08:59:07 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-264799304-1480928346-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:26 UTC