Bug 293213

Summary: [svg] pre value on white-space presentational attribute should be supported on rect element
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: caugner, sabouhallawa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Karl Dubost
Reported 2025-05-18 19:35:38 PDT
1. Go to http://wpt.live/svg/styling/presentation-attributes-irrelevant.html FAIL: Safari, Chrome PASS: Firefox. <svg id="svg"><rect white-space="pre"></rect></svg> <p id="log"></p> <script> const log = document.querySelector("#log"); testValue = window.getComputedStyle(document.querySelector('rect')).getPropertyValue('white-space'); log.textContent = "text-overflow value should be pre: " + testValue; </script> For Safari, The returned value is currently: normal
Attachments
Karl Dubost
Comment 1 2025-05-18 19:38:39 PDT
In https://svgwg.org/svg2-draft/single-page.html#styling-PresentationAttributes > Any element in the SVG namespace. for white-space
Karl Dubost
Comment 2 2025-05-18 19:47:18 PDT
This is happening in both legacy and LBSE.
Radar WebKit Bug Importer
Comment 3 2025-05-25 19:48:51 PDT
caugner
Comment 4 2025-06-17 07:20:34 PDT
According to https://developer.mozilla.org/en-US/docs/Web/CSS/white-space#browser_compatibility, Safari does not currently support `white-space` on SVG elements.
Note You need to log in before you can comment on or make changes to this bug.