summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-color/light-dark-inheritance.html
blob: 1128b57319b0e9b8b4224b6c3005e18d349d8191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!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>