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

Description Bear Travis 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.
Comment 1 Bear Travis 2014-10-27 13:33:58 PDT
Created attachment 240501 [details]
SVG Sheet with Custom Viewbox set
Comment 2 Bear Travis 2014-10-27 13:35:46 PDT
Created attachment 240502 [details]
Test file
Comment 3 Bear Travis 2014-10-27 13:38:48 PDT
Created attachment 240503 [details]
Screenshot of bug/test file
Comment 4 Dirk Schulze 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?
Comment 5 Brent Fulgham 2022-07-15 17:02:53 PDT
All browsers fail this test. Is it a correct test case?