Files
sousa-gecko/testing/web-platform/tests/svg/text/scripted/textpath-href-path-mutated.html
T
Karl Dubost 34126bd0d4 Bug 2031535 [wpt PR 59066] - Fix #59047 - fix SVG fresh specs links, a=testonly
Automatic update from web-platform-tests
Fix #59047 - fix SVG fresh specs links

--

wpt-commits: bc058f342f2aed8c63fdb6f0f35249952d076eb7
wpt-pr: 59066
2026-04-23 10:10:37 +00:00

19 lines
819 B
HTML

<!doctype html>
<title>Mutation of 'd' on a 'display: none' &lt;path> referenced by &lt;textPath></title>
<link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/text.html#TextPathElementHrefAttribute">
<link rel="help" href="https://crbug.com/485900033">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<svg>
<path id="path" d="M0,25h200" display="none"/>
<text id="target" fill="green"><textPath href="#path">Text</textPath></text>
</svg>
<script>
test(t => {
const text = document.getElementById('target');
assert_equals(text.getStartPositionOfChar(0).y, 25, 'before mutation');
document.getElementById("path").setAttribute("d", "M0,50h200");
assert_equals(text.getStartPositionOfChar(0).y, 50, 'after mutation');
});
</script>