Bug 20634

Summary: SVG transform attribute is ignored by <use> in <clipPath>
Product: WebKit Reporter: Robert Xiao <spam_hole>
Component: SVGAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: krit
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Description Flags
Testcase -- should show a green square
First attempt eric: review+

Description Robert Xiao 2008-09-03 14:36:03 PDT
If a transform attribute is set on a <path>, and that path is subsequently made into a clipPath by use of the <use> element, the transform attribute is ignored.

For example, in the attached document, #crect is transformed to clip the green rect to the entire view box. If the transformation is not applied, #crect lies outside the view box and the red box underneath will be shown. Opera and Firefox both render a green square, but Safari 3.1.2 and r36012 both render a red square.
Comment 1 Robert Xiao 2008-09-03 14:36:35 PDT
Created attachment 23147 [details]
Testcase -- should show a green square
Comment 2 Rob Buis 2008-09-14 04:45:08 PDT
Created attachment 23410 [details]
First attempt

This patch fixes the problematic testcase.

Comment 3 Eric Seidel (no email) 2008-09-15 14:13:20 PDT
Comment on attachment 23410 [details]
First attempt

looks ok.
Comment 4 Rob Buis 2008-09-16 04:16:16 PDT
Landed in r36501.