Re: [csswg-drafts] [css-display][css-aam][selectors-4] How elements with `display:contents` get focused? (#2632)

Spec currently says

> The display property has no effect on an element’s semantics: these are defined by the document language and are not affected by CSS. Aside from the none value, which also affects the aural/speech output [CSS-SPEECH-1] and interactivity of an element and its descendants, the display property only affects visual layout: its purpose is to allow designers freedom to change the layout behavior of an element without affecting the underlying document semantics. 

and also wrt 'contents' specifically

> Note: As only the box tree is affected, any semantics based on the document tree, such as selector-matching, event handling, and property inheritance, are not affected.

Tabbing to an element qualifies as interactivity and event-handling. So I think the spec is OK. WDYT @SelenIT ?

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

Received on Thursday, 23 May 2019 19:49:55 UTC