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 

> Looking at webdevdata from last year, I see 295 sites out of 102,000
using bare :focus or *focus. About 99% is setting outline:0 but one is
menu implemented in CSS with :focus, and some also use $("*:focus") in
which would return the wrong element if ancestors matched. So I think 
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 
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