- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Mon, 30 Apr 2018 20:58:44 +0000
- To: public-css-archive@w3.org
Whether or not an element is focused has no relation to whether it's in the box tree or not. (It might affect whether some methods of focus-traversal can reach it, but you can always `.focus()` the element.) Whether or not the element is `display:contents` has no effect on how selectors match and properties apply; a focused element will always match `:focus` if it's focused, and the specified properties will be applied to it. None of them will have any *direct effect* on the element, because it doesn't generate a box, but inheritance will still work. We shouldn't try to get extra-smart with this; the element is *gone*, there's nothing to apply a background or anything else to. (Note, for example, that if you `display:contents` a child of a grid container, its children are now grid items, and can be moved arbitrarily around the grid; there is nothing remotely related to the "first line" concept to refer to here.) -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2632#issuecomment-385526818 using your GitHub account
Received on Monday, 30 April 2018 20:58:49 UTC