- From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
- Date: Sat, 27 Jul 2019 22:02:55 +0000
- To: public-svg-issues@w3.org
AmeliaBR has just labeled an issue for https://github.com/w3c/svgwg as "CSS Consistency": == Remove outdated note on hit-testing and root element == [The instructions for hit-testing](https://svgwg.org/svg2-draft/interact.html#hit-testing) say: > Note that the ‘svg’ element is not a graphics element, and in a Conforming SVG Stand-Alone File a outermost svg element will never be the target of pointer events, though events can bubble to this element. If a pointer event does not result in a positive hit-test on a graphics element, then it should evoke any user-agent-specific window behavior, such as a presenting a context menu or controls to allow zooming and panning of an SVG document fragment. This text [hasn't changed since SVG 1.1](https://www.w3.org/TR/SVG11/interact.html). It doesn't match implementations, or the general rule used elsewhere that the root SVG behaves as a CSS layout box. CSS layout boxes catch clicks. ([Demo interactive SVG that relies on this being true](https://oreillymedia.github.io/Using_SVG/ch18-interaction-files/gem-click-game-misses.svg)) Related to #703; need to more comprehensively define what it means that the root SVG is a CSS layout box (and how that impacts non-CSS environments). See https://github.com/w3c/svgwg/issues/718
Received on Saturday, 27 July 2019 22:02:56 UTC