summaryrefslogtreecommitdiffstats
path: root/devtools/client/inspector/rules/test/doc_variables_1.html
blob: 5b7905f47e25e9d10a9ae6551583f4e9e2bfba57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
<head>
  <title>variables test</title>

  <style>
    * {
      --color: tomato;
      --bg: violet;
    }

    div {
      --color: chartreuse;
      color: var(--color, red);
      background-color: var(--not-set, var(--bg));
    }
  </style>
</head>
<body>
  <div id="target" style="--bg: seagreen;"> the ocean </div>
</body>
</html>