1
0
Fork 0
firefox/testing/web-platform/tests/svg/coordinate-systems/viewBox-baseVal-change-invalid.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
531 B
HTML

<!doctype HTML>
<title>viewBox.baseVal dynamically changes to invalid value</title>
<link rel="help" href="https://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute">
<link rel="match" href="../struct/reftests/reference/green-100x100.html">
<svg id="svg" style="height: 200px; width: 200px;" viewBox="0 0 100 100">
<rect width="100" height="100" fill="green"></rect>
</svg>
<script>
onload = () => {
// After this, viewBox should be ignored, and the green rect should be 100x100.
svg.viewBox.baseVal.width = -100;
};
</script>