WebKit fails IETC chapter_05.7.svg
Unclear why yet.
Looking at the (horribly written) test in more detail, it appears that we fail the "polyline" and "polygon" enclosure list sections of the test.
Created attachment 126156 [details]
reduced test case (uses console.assert)
I think the test is wrong. The spec says:
Returns the list of graphics elements whose rendered content is entirely contained within the supplied rectangle. Each candidate graphics element is to be considered a match only if the same graphics element can be a target of pointer events as defined in ‘pointer-events’ processing.
We definitely return these two elements if you start the rect at -1, -1. But Given that these elements are stroked with (default) width 1, that stroke will excede the boundaries of the rectangle at 0,0.