[Webkit-unassigned] [Bug 258003] New: SVGSVGElement should support rem (probably other) units for width and height attributes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 12 21:56:38 PDT 2023


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

            Bug ID: 258003
           Summary: SVGSVGElement should support rem (probably other)
                    units for width and height attributes
           Product: WebKit
           Version: Safari 17
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: BrowserCompat
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: karlcow at apple.com
                CC: sabouhallawa at apple.com, zimmermann at kde.org

https://searchfox.org/wubkat/rev/a420a9f3f6ab4c8d0c75aae3877d736d66affe36/Source/WebCore/svg/SVGSVGElement.cpp#210-216


data:text/html,<svg width="100" height="100"><circle cx="50" cy="50" r="50" /></svg>


# this is ok and valid. No issue
document.querySelector('svg').setAttribute('width', 200)


# This creates an error message in the console.
# Chrome accepts it, Safari and Firefox reject it.
# Not only it rejects the value but sets an entirely different value (this should probably not happen too.)
document.querySelector('svg').setAttribute('width', ‘2rem’)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230613/63b21b2f/attachment.htm>


More information about the webkit-unassigned mailing list