W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2017

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

From: Boris Zbarsky via GitHub <sysbot+gh@w3.org>
Date: Wed, 29 Mar 2017 12:53:46 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-217865833-1490792025-sysbot+gh@w3.org>
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

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