Bug 293213
| Summary: | [svg] pre value on white-space presentational attribute should be supported on rect element | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Karl Dubost <karlcow> |
| Component: | SVG | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Karl Dubost
In https://svgwg.org/svg2-draft/single-page.html#styling-PresentationAttributes
> Any element in the SVG namespace.
for white-space
Karl Dubost
This is happening in both legacy and LBSE.
Radar WebKit Bug Importer
<rdar://problem/152019208>
caugner
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.