Bug 1545675 [wpt PR 16364] - WPT/BGPT: Add animation stop and set time tests, make...
[gecko.git] / testing / web-platform / tests / css / css-variables / css-vars-custom-property-case-sensitive-001.html
blob6644175e5533a19ef4125dd8aecd833f1be12c39
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>CSS Variables Test: custom property names are case-sensitive</title>
5 <meta charset="UTF-8">
6 <link rel="author" title="Noah Collins" href="mailto:noahcollins@gmail.com">
7 <link rel="help" href="http://www.w3.org/TR/css-variables-1/#using-variables">
8 <meta name="assert" content="Custom property names are case-sensitive">
9 <link rel="match" href="reference/css-vars-custom-property-case-sensitive-ref.html">
10 <style type="text/css">
11 :root {
12 --veryblue: #22e;
13 --AlsoBlue: #22e;
15 --veryred: #f00;
16 --AlsoRed: #f00;
19 /* These match the case of the declarations */
20 .blue-good-1 { color: var(--veryblue); }
21 .blue-good-2 { color: var(--AlsoBlue); }
23 /* These DO NOT match the case of the declarations */
24 .red-bad-1 { color: var(--VeryRed); }
25 .red-bad-2 { color: var(--alsored); }
26 </style>
27 </head>
28 <body>
29 <h2 class="blue-good-1">Valid CSS Variable Names</h2>
30 <p class="blue-good-1">This paragraph is styled using a valid CSS Variable name. It should be blue.</p>
31 <p class="blue-good-2">This paragraph is styled using a valid CSS Variable name. It should be blue.</p>
32 <br>
33 <h2 class="red-bad-1">Invalid CSS Variable Names</h2>
34 <p class="red-bad-1">This paragraph is styled using an invalid CSS Variable name. Fail if red.</p>
35 <p class="red-bad-2">This paragraph is styled using an invalid CSS Variable name. Fail if red.</p>
36 </body>
37 </html>