Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-variables-1/css-vars-custom-property-case-sensitive-001.html

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Whoops, the forward declaration just needed to be moved. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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-re f.html">
10 <style type="text/css">
11 :root {
12 --veryblue: #22e;
13 --AlsoBlue: #22e;
14
15 --veryred: #f00;
16 --AlsoRed: #f00;
17 }
18
19 /* These match the case of the declarations */
20 .blue-good-1 { color: var(--veryblue); }
21 .blue-good-2 { color: var(--AlsoBlue); }
22
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 n ame. It should be blue.</p>
31 <p class="blue-good-2">This paragraph is styled using a valid CSS Variable n ame. 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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698