[Webkit-unassigned] [Bug 268363] New: [SVG] baseval.value of an SVG element nested inside a symbol returns an error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jan 30 00:40:35 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=268363
Bug ID: 268363
Summary: [SVG] baseval.value of an SVG element nested inside a
symbol returns an error
Product: WebKit
Version: Safari 17
Hardware: Unspecified
URL: https://wpt.fyi/results/svg/geometry/svg-baseval-in-di
splay-none.html
OS: Unspecified
Status: NEW
Keywords: BrowserCompat, WPTImpact
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: karlcow at apple.com
CC: ahmad.saleem792 at gmail.com, sabouhallawa at apple.com,
webkit-bug-importer at group.apple.com,
zimmermann at kde.org
https://codepen.io/webcompat/pen/Jjzpogz
<svg>
<symbol>
<g>
<rect id="r1" width="20%" height="30%" />
</g>
</symbol>
</svg>
the width of the rect returns:
Safari:
=======================================
width.baseVal.valueAsString: 20%
width.baseVal.valueInSpecifiedUnits: 20
=======================================
with an error message in the console:
NotSupportedError: The operation is not supported.
Firefox:
=======================================
width.baseVal.valueAsString: 20%
width.baseVal.valueInSpecifiedUnits: 20
width.baseVal.value: 60
=======================================
If you remove the symbol element, it returns the correct result:
Safari:
=======================================
width.baseVal.valueAsString: 20%
width.baseVal.valueInSpecifiedUnits: 20
width.baseVal.value: 60
=======================================
Because of this, WebKit fails
https://wpt.fyi/results/svg/geometry/svg-baseval-in-display-none.html
--
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/20240130/00f8c6fb/attachment.htm>
More information about the webkit-unassigned
mailing list