Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<html class="reftest-wait">
<title>Invalidation of stroke-dasharray with percentage units</title>
<link rel="match" href="pct-stroke-dasharray-01-ref.html">
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<style>
svg {
width: 100%;
display: block;
}
</style>
<div id="toggler" style="width: 500px; overflow: hidden">
<svg height="120">
<path
d="M0 30 H4000"
stroke="green"
stroke-width="30"
stroke-dasharray="4%"/>
</svg>
</div>
<script>
function doTest() {
const toggler = document.querySelector("#toggler");
toggler.getBoundingClientRect();
toggler.style.width = "200px";
takeScreenshot();
}
document.documentElement.addEventListener("TestRendered", doTest);
</script>
</html>