[Webkit-unassigned] [Bug 81591] New: [SVG] viewbox confused by border

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 19 16:34:04 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=81591

           Summary: [SVG] viewbox confused by border
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ericu at chromium.org
                CC: zimmermann at kde.org


Created an attachment (id=132711)
 --> (https://bugs.webkit.org/attachment.cgi?id=132711&action=review)
Repro case

I originally logged this as a Chrome bug [http://code.google.com/p/chromium/issues/detail?id=118108], but it affects Safari identically, and likely all other ports.
I've reproduced it in Chrome/Linux, Chrome/Windows, and Safari/Windows.  Firefox does not have the bug.

What steps will reproduce the problem?
1. Load the attached file svg.html.
2. Examine the corners of the two SVG regions.

What is the expected output? What do you see instead?

You should see the same quarter-circles in all corners of each square, plus a whole circle dead center.

Instead, the SVG region with a border offsets the svg drawing region by the width of the border [3px], but doesn't scale it, so the viewbox is more like 0 0 0.97 0.97.  So the quarter-circles in the 3 corners that aren't the origin aren't visible, and the full circle isn't centered.

The other SVG region, with no border, works fine.

See the linked chrome bug for screen shots.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list