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

> the `::before` and `::after` pseudo-elements boxes [...] the text run generated by the element

@SelenIT My understanding is that the boxes generated by `::before` and `::after` are associated with the pseudo-element itself, and not directly with its originating element. And a text run is associated with the generating text nodes, and not directly with their parent element.

> The definition of the "rendered element" in HTML clearly was created before `display:contents` was introduced

This is a fair point which should be addressed in @emilio's issue. But currently I don't think "the specs are clear about this" [an element with `display: contents` being focusable] as @fantasai says.



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

Received on Friday, 16 November 2018 15:00:30 UTC