Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-color/light-dark-inheritance.html
<!doctype html> <meta charset="utf-8"> <title>light-dark() computes to the actual value, like system colors</title> <link rel="help" href="https://drafts.csswg.org/css-color-adjust/#color-scheme-effect"> <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/7561"> <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html"> <style> .square { width: 100px; height: 100px; color-scheme: dark; background-color: currentColor; } .container { color-scheme: light; color: light-dark(green, red); } </style> <p>Test passes if there is a filled green square.</p> <div class="container"> <div class="square"></div> </div>
/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>