Add support for the CSS 'unset' keyword.
[WebKit-https.git] / LayoutTests / fast / css / variables / test-suite / 129.html
1 <!DOCTYPE html>
2 <!--
3      Any copyright is dedicated to the Public Domain.
4      http://creativecommons.org/publicdomain/zero/1.0/
5 --><html><head><title>CSS Test: Test declaring a variable whose value is "unset" where there is a variable to inherit from.</title>
6 <link href="mailto:cam@mcc.id.au" rel="author" title="Cameron McCormack">
7 <link href="http://www.w3.org/TR/css-variables-1/#defining-variables" rel="help">
8 <link href="support/color-green-ref.htm" rel="match">
9 <style>
10 body {
11   --a: green;
12   color: crimson;
13 }
14 p {
15   color: red;
16 }
17 p {
18   color: orange;
19   --a: unset;
20   color: var(--a);
21 }
22 </style>
23 </head><body><p>This text must be green.</p>
24 </body></html>