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

Side by Side Diff: LayoutTests/fast/css/variables/computed-style.html

Issue 16183002: Unprefix CSS Variables (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased and updated prefix test Created 7 years, 6 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
1 <style> 1 <style>
2 body { 2 body {
3 -webkit-var-a: bold; 3 var-a: bold;
4 font-weight: normal; 4 font-weight: normal;
5 font-weight: -webkit-var(a); 5 font-weight: var(a);
6 } 6 }
7 </style> 7 </style>
8 <body> 8 <body>
9 Test failed - JS did not run 9 Test failed - JS did not run
10 </body> 10 </body>
11 <script> 11 <script>
12 var element = document.body; 12 var element = document.body;
13 var weight = window.getComputedStyle(element, null).getPropertyValue("font-weigh t"); 13 var weight = window.getComputedStyle(element, null).getPropertyValue("font-weigh t");
14 if (weight == "bold") 14 if (weight == "bold")
15 element.innerHTML = "Test passed - computed font weight is bold"; 15 element.innerHTML = "Test passed - computed font weight is bold";
16 else 16 else
17 element.innerHTML = "Test failed - computed color is " + weight; 17 element.innerHTML = "Test failed - computed color is " + weight;
18 </script> 18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698