2011-04-20 13:16:02 +04:00
|
|
|
<!--
|
|
|
|
Any copyright is dedicated to the Public Domain.
|
2011-06-21 16:19:35 +04:00
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
2011-04-20 13:16:02 +04:00
|
|
|
-->
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
|
|
|
|
|
|
|
|
<title>Test 'stroke-linecap: square' with zero length path segments</title>
|
|
|
|
|
2015-08-01 11:09:00 +03:00
|
|
|
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=589648 for path and
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=1187770 for line -->
|
2011-04-20 13:16:02 +04:00
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
function run()
|
|
|
|
{
|
|
|
|
document.getElementById('path').setAttribute('stroke-linecap', 'butt');
|
2015-08-01 11:09:00 +03:00
|
|
|
document.getElementById('line').setAttribute('stroke-linecap', 'butt');
|
2011-04-20 13:16:02 +04:00
|
|
|
document.documentElement.removeAttribute('class');
|
|
|
|
}
|
|
|
|
|
|
|
|
window.addEventListener("MozReftestInvalidate", run, false);
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<rect width="100%" height="100%" style="fill:lime"/>
|
|
|
|
|
|
|
|
<path id="path" stroke="red" stroke-width="200" stroke-linecap="square"
|
|
|
|
d="M100,100 L100,100"/>
|
|
|
|
|
2015-08-01 11:09:00 +03:00
|
|
|
<line id="line" stroke="red" stroke-width="200" stroke-linecap="square"
|
|
|
|
x1="300" y1="300" x2="300" y2="300"/>
|
|
|
|
|
2011-04-20 13:16:02 +04:00
|
|
|
</svg>
|