Bug 76093

Summary: WebKit fails IETC chapter_05.7.svg
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: abarth, krit, rwlbuis, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 76198    
Attachments:
Description Flags
reduced test case (uses console.assert) none

Description Eric Seidel (no email) 2012-01-11 12:17:23 PST
WebKit fails IETC chapter_05.7.svg

http://samples.msdn.microsoft.com/ietestcenter/svg112/svg/svg/chapter_05.7.svg

Unclear why yet.
Comment 1 Eric Seidel (no email) 2012-02-08 14:34:38 PST
Looking at the (horribly written) test in more detail, it appears that we fail the "polyline" and "polygon" enclosure list sections of the test.
Comment 2 Eric Seidel (no email) 2012-02-08 14:41:36 PST
Created attachment 126156 [details]
reduced test case (uses console.assert)
Comment 3 Eric Seidel (no email) 2012-02-08 14:49:04 PST
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.