WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
138101
Customizing the viewBox via a fragment identifier does not properly clip the image
https://bugs.webkit.org/show_bug.cgi?id=138101
Summary
Customizing the viewBox via a fragment identifier does not properly clip the ...
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
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
View All
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug