[Webkit-unassigned] [Bug 57318] New: Incorrect offset of svg <use> element which is in <symbol> element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 29 02:36:28 PDT 2011


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

           Summary: Incorrect offset of svg <use> element which is in
                    <symbol> element
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: leo.yang at torchmobile.com.cn
                CC: zimmermann at kde.org, krit at webkit.org


When a svg <use> is in <symbol> webkit won't take offset into account. The following code should be rendered
as a 100*100 green rectangle visually. Patch is coming soon...

<?xml version="1.0" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="100" height="100">
    <defs>
        <symbol id="s" viewBox="0 0 1 2">
            <rect fill="green" width="1" height="2" />
        </symbol>
        <symbol id="s1" viewBox="0 0 2 2">
            <use xlink:href="#s" x="0" y="0" width="1" height="2" />
            <use xlink:href="#s" x="1" y="0" width="1" height="2" />
        </symbol>
    </defs>
    <use xlink:href="#s1" x="0" y="0" width="100" height="100" />
</svg>

-- 
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