Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-images/color-stop-color-mix-currentcolor-invalidation.html
<!DOCTYPE html> <html class="reftest-wait"> <title>CSS Images Test: Invalidate currentcolor in gradient with color-mix() color stop</title> <link rel="help" href="https://drafts.csswg.org/css-images/#gradients"> <link rel="help" href="https://drafts.csswg.org/css-color-5/#color-mix"> <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html"> <script src="/common/reftest-wait.js"></script> <style> .test { color: red; width: 100px; height: 50px; } #t1 { background-image: linear-gradient(color-mix(currentColor, pink 0%) 0 0); } #t2 { background-image: conic-gradient(color-mix(currentColor, pink 0%) 0 0); } </style> <p>Test passes if there is a filled green square.</p> <div id="t1" class="test"></div> <div id="t2" class="test"></div> <script> requestAnimationFrame(() => requestAnimationFrame(() => { t1.style.color = "green"; t2.style.color = "green"; takeScreenshot(); })); </script>
/css/reference/ref-filled-green-100px-square-only.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> <p>Test passes if there is a filled green square.</p> <div style="width:100px; height:100px; background:green;"></div>