Re: [csswg-drafts] [selectors-4] Can an element with no boxes and no child elements be in :hover state?

If I read the current draft[1] correctly, it says that that the deepest node in the chain of nodes that gets the :hover state must be an element, and must generate a box. There is no requirement that the ancestors need to generate boxes to get the :hover state, though. So for this case:

```
<div style="display:contents">
  <div>
    <div style="display:contents">Hover me</div>
  </div>
</div>
```

The inner display:contents does not match :hover, but the outer does.

#1135 is related.

[1] https://drafts.csswg.org/selectors/#the-hover-pseudo


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

Received on Wednesday, 29 March 2017 13:52:20 UTC