Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-borders/tentative/border-shape/border-shape-stroke-invalidation.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Borders Shape: border-shape strokes update their entire visual area when the stroke color changes.</title>
<link rel="match" href="border-shape-stroke-invalidation-ref.html">
<style>
body {
margin: 0;
}
#changer {
width: 200px;
height: 200px;
border-shape: circle(50% at 50% 50%);
stroke: blue;
stroke-width: 50px;
}
</style>
<div id="changer"></div>
<script>
const changer = document.getElementById('changer');
requestAnimationFrame(() => {
changer.style.setProperty('stroke', 'lightblue');
requestAnimationFrame(() => {
document.documentElement.classList.remove('reftest-wait');
});
});
</script>