W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2018

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

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Fri, 16 Nov 2018 15:00:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-439419615-1542380426-sysbot+gh@w3.org>
> 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

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