4 <title>CSS Variables Test: custom property names are case-sensitive
</title>
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">
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
); }
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>
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>