Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/compositing/mix-blend-mode/mix-blend-mode-stacking-context-002.html
<!DOCTYPE html> <html class="reftest-wait"> <meta charset="utf-8"> <title>CSS Compositing: mix-blend-mode changing dynamically</title> <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> <link rel="help" href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode"> <link rel="help" href="https://github.com/servo/servo/issues/38506"> <meta name="assert" content="Dynamic changes of mix-blend-mode can start or stop establishing a stacking context."> <link rel="match" href="../../reference/ref-filled-green-200px-square.html"> <style> .target { width: 200px; height: 100px; position: relative; } .target > div { position: absolute; inset: 0; z-index: -1; } </style> <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> <div id="a" class="target" style="mix-blend-mode: normal; background: red"> <div style="background: green"></div> </div> <div id="b" class="target" style="mix-blend-mode: multiply; background: green"> <div style="background: red"></div> </div> <script src="/common/reftest-wait.js"></script> <script> requestAnimationFrame(() => requestAnimationFrame(() => { document.getElementById("a").style.mixBlendMode = "multiply"; document.getElementById("b").style.mixBlendMode = "normal"; takeScreenshot(); })); </script> </html>
/css/reference/ref-filled-green-200px-square.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Reftest Reference</title> <link rel="author" title="Javier Fernandez Garcia-Boente" href="jfernandez@igalia.com" /> <style> div { background-color: green; height: 200px; width: 200px; } </style> <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> <div></div>