Bug 81981 - SVG Viewbox should account for borders on SVG element
Summary: SVG Viewbox should account for borders on SVG element
Status: RESOLVED DUPLICATE of bug 81591
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: 2012-03-22 15:53 PDT by Stephen Chenney
Modified: 2012-03-26 17:08 PDT (History)
4 users (show)

See Also:


Attachments
test case (1022 bytes, text/html)
2012-03-22 15:53 PDT, Stephen Chenney
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Chenney 2012-03-22 15:53:32 PDT
Created attachment 133373 [details]
test case

When an SVG element in general HTML has a non-zero-width border, the viewbox is currently sized assuming that the border is absent. But the border intrudes into the SVG element, as it should, and this makes the effective area for the viewport smaller. THe viewport should decide on its transform accounting for the border on its enclosing box.
Comment 1 Stephen Chenney 2012-03-22 15:53:50 PDT
Chromium http://code.google.com/p/chromium/issues/detail?id=118108
Comment 2 Dirk Schulze 2012-03-22 16:10:41 PDT
(In reply to comment #0)
> Created an attachment (id=133373) [details]
> test case
> 
> When an SVG element in general HTML has a non-zero-width border, the viewbox is currently sized assuming that the border is absent. But the border intrudes into the SVG element, as it should, and this makes the effective area for the viewport smaller. THe viewport should decide on its transform accounting for the border on its enclosing box.

Ha! That sounds stupid :D
Comment 3 Eric U. 2012-03-26 17:08:21 PDT
Sorry-I should have linked earlier.  I already upstreamed this bug, and Dirk Schulze says it's fixed.

*** This bug has been marked as a duplicate of bug 81591 ***