W3C home > Mailing lists > Public > www-style@w3.org > August 2014

Hit-testing on the body element

From: Robert Hogan <robhogan@gmail.com>
Date: Fri, 1 Aug 2014 13:46:33 +0100
Message-ID: <CAD1xn+M3Ouv5EB4Wh8LE+v+YOo-rKoHHfk7jtg5QHFvT+Tj=eA@mail.gmail.com>
To: www-style list <www-style@w3.org>
In the test case below, Blink and WebKit display a red background on the
body element when the mouse hovers over the page.

 <style>
     body:hover { background-color: red; }
 </style>
 <body></body>

FF/IE/Presto do not display a red background. None of them set
pointer-events:none on the body element, so I'm guessing each
implementation special-cases the body element some other way.

Is this behaviour specified anywhere or is it just common-sense? Would
using pointer-events:none in html.css be a better way of enforcing it?


Thanks,
Robert
Received on Friday, 1 August 2014 12:47:10 UTC

This archive was generated by hypermail 2.3.1 : Friday, 1 August 2014 12:47:10 UTC