1
0
Fork 0
firefox/testing/web-platform/tests/svg/layout/svg-foreign-relayout-002.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

14 lines
625 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1462742">
<link rel="match" href="../../css/reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<svg width=100 height=100>
<foreignObject id=target x=100 width=100 height=100>
<canvas id=inner style="background: green; position: absolute; width: 100px; height: 100px; left: 0; top: 0;"></canvas>
</foreignObject>
</svg>
<script>
document.body.offsetTop;
document.getElementById('inner').width = '100';
document.getElementById('target').setAttribute('x', '0');
</script>