[svgwg] Remove outdated note on hit-testing and root element (#718)

AmeliaBR has just created a new issue for https://github.com/w3c/svgwg:

== 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).

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/718 using your GitHub account

Received on Saturday, 27 July 2019 22:02:57 UTC