Bug 138101

Summary: Customizing the viewBox via a fragment identifier does not properly clip the image
Product: WebKit Reporter: Bear Travis <betravis>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: bfulgham, krit, zimmermann
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
SVG Sheet
none
SVG Sheet with Custom Viewbox set
none
Test file
none
Screenshot of bug/test file none

Bear Travis
Reported 2014-10-27 13:33:29 PDT
Created attachment 240500 [details] SVG Sheet When using SVG in an image tag, and customizing the viewBox via a fragment identifier (using svgView or a named view), the viewBox translates but does not adjust width/height correctly. In the above test file, you will see a portion of an orange square, which should be clipped out of the custom view box.
Attachments
SVG Sheet (548 bytes, image/svg+xml)
2014-10-27 13:33 PDT, Bear Travis
no flags
SVG Sheet with Custom Viewbox set (550 bytes, image/svg+xml)
2014-10-27 13:33 PDT, Bear Travis
no flags
Test file (391 bytes, text/html)
2014-10-27 13:35 PDT, Bear Travis
no flags
Screenshot of bug/test file (14.49 KB, image/png)
2014-10-27 13:38 PDT, Bear Travis
no flags
Bear Travis
Comment 1 2014-10-27 13:33:58 PDT
Created attachment 240501 [details] SVG Sheet with Custom Viewbox set
Bear Travis
Comment 2 2014-10-27 13:35:46 PDT
Created attachment 240502 [details] Test file
Bear Travis
Comment 3 2014-10-27 13:38:48 PDT
Created attachment 240503 [details] Screenshot of bug/test file
Dirk Schulze
Comment 4 2014-10-28 11:39:14 PDT
(In reply to comment #0) > Created attachment 240500 [details] > SVG Sheet > > When using SVG in an image tag, and customizing the viewBox via a fragment > identifier (using svgView or a named view), the viewBox translates but does > not adjust width/height correctly. In the above test file, you will see a > portion of an orange square, which should be clipped out of the custom view > box. Clipping sounds confusing here. A viewBox never clips something. But from what I get, the translation works (x,y values) but the scaling does not?
Brent Fulgham
Comment 5 2022-07-15 17:02:53 PDT
All browsers fail this test. Is it a correct test case?
Note You need to log in before you can comment on or make changes to this bug.