Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-borders/border-shape/border-shape-stroke-invalidation.html
<!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="help" href="https://drafts.csswg.org/css-borders-4/#border-shape"> <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>
/css/css-borders/border-shape/border-shape-stroke-invalidation-ref.html
<!DOCTYPE html> <style> body { margin: 0; } #changer { width: 200px; height: 200px; border-shape: circle(50% at 50% 50%); stroke: lightblue; stroke-width: 50px; } </style> <div id="changer"></div>