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

bzbarsky has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors-4] Can an element with no boxes and no child elements be in :hover state? ==
Consider this testcase:

    <style>
      div { display: contents }
      div:hover { color: purple }
    </style>
    <div>This is some text</div>

When hovering over the text, does it turn purple?  The spec is pretty unclear on when an element is actually "designated with a pointing device" and what that means for display:contents elements, exactly.  Note that in this case there are no descendants of any sort matching :hover, because text nodes do not match :hover themselves.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1141 using your GitHub account

Received on Wednesday, 29 March 2017 12:53:52 UTC