Re: [w3c/uievents] Should an element remain focused and receive key events if it's display:none-ed? (#236)

Note that WebKit's behavior to not lose focus (blur) the element which loses CSS box due to `display:none` was a compatibility requirement on facebook's mobile site as [recently as five years ago](https://bugs.webkit.org/show_bug.cgi?id=29241#c31). This is also the behavior IE had and [WebKit deliberately decided](https://bugs.webkit.org/show_bug.cgi?id=40338) not to remove focus from such an element seven years ago.

It's possible that the compatibility story has changed in recent years due to Blink's market share but I wouldn't discount the major Web compatibility risk Gecko and WebKi would face if we were to implement Blink's relatively new behavior. In fact, Blink is literally the only major engine which exhibits this behavior so I'm inclined to say the spec needs to be updated to match WebKit/Gecko/IE behavior instead assuming Blink is willing to change its behavior back.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/236#issuecomment-507022499

Received on Sunday, 30 June 2019 09:43:31 UTC