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

> An element with display: contents generates no box, thus it's not being rendered,

Respectfully disagree. "Doesn't _generate_ a box" !== "doesn't have _*any* associated_ CSS layout boxes, SVG layout boxes, or some equivalent". If, e.g., the `::before` and `::after` pseudo-elements boxes are not _associated_ with the originating element, it would be super strange from the author's perspective. I'd argue that the text run generated by the element's bare text should probably also be considered "some equivalent" of the CSS box for that purpose. The definition of the "rendered element" in HTML clearly was created before `display:contents` was introduced, but at least I clearly read it as "if element has any visible parts", and I can't agree that the content of the element is not its part. Probably that HTML definition should be also clarified further?

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

Received on Friday, 16 November 2018 14:23:09 UTC