Bug 138101 - Customizing the viewBox via a fragment identifier does not properly clip the image
Summary: Customizing the viewBox via a fragment identifier does not properly clip the ...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-27 13:33 PDT by Bear Travis
Modified: 2022-07-15 17:02 PDT (History)
3 users (show)

See Also:


Attachments
SVG Sheet (548 bytes, image/svg+xml)
2014-10-27 13:33 PDT, Bear Travis
no flags Details
SVG Sheet with Custom Viewbox set (550 bytes, image/svg+xml)
2014-10-27 13:33 PDT, Bear Travis
no flags Details
Test file (391 bytes, text/html)
2014-10-27 13:35 PDT, Bear Travis
no flags Details
Screenshot of bug/test file (14.49 KB, image/png)
2014-10-27 13:38 PDT, Bear Travis
no flags Details

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