| Summary: | Customizing the viewBox via a fragment identifier does not properly clip the image | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Bear Travis <betravis> | ||||||||||
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||||||||
| Status: | RESOLVED WORKSFORME | ||||||||||||
| Severity: | Normal | CC: | bfulgham, krit, zimmermann | ||||||||||
| Priority: | P2 | ||||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
Created attachment 240501 [details]
SVG Sheet with Custom Viewbox set
Created attachment 240502 [details]
Test file
Created attachment 240503 [details]
Screenshot of bug/test file
(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? All browsers fail this test. Is it a correct test case? |
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.