Bug 20634 - SVG transform attribute is ignored by <use> in <clipPath>
Summary: SVG transform attribute is ignored by <use> in <clipPath>
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-03 14:36 PDT by Robert Xiao
Modified: 2008-09-16 04:16 PDT (History)
1 user (show)

See Also:


Attachments
Testcase -- should show a green square (563 bytes, image/svg+xml)
2008-09-03 14:36 PDT, Robert Xiao
no flags Details
First attempt (10.49 KB, patch)
2008-09-14 04:45 PDT, Rob Buis
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.
Cheers,

Rob.
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.