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

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

Issue 14706011: Revert 150468 "Switching CSS Variables over to RuntimeEnabledFea..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 7 years, 7 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
Property Changes:
Deleted: svn:mime-type
- text/html
Deleted: svn:eol-style
- LF
OLDNEW
1 <script>
2 internals.settings.setCSSVariablesEnabled(true);
3 </script>
1 <style> 4 <style>
2 body { 5 body {
3 -webkit-var-a: bold; 6 -webkit-var-a: bold;
4 font-weight: normal; 7 font-weight: normal;
5 font-weight: -webkit-var(a); 8 font-weight: -webkit-var(a);
6 } 9 }
7 </style> 10 </style>
8 <body> 11 <body>
9 Test failed - JS did not run 12 Test failed - JS did not run
10 </body> 13 </body>
11 <script> 14 <script>
12 var element = document.body; 15 var element = document.body;
13 var weight = window.getComputedStyle(element, null).getPropertyValue("font-weigh t"); 16 var weight = window.getComputedStyle(element, null).getPropertyValue("font-weigh t");
14 if (weight == "bold") 17 if (weight == "bold")
15 element.innerHTML = "Test passed - computed font weight is bold"; 18 element.innerHTML = "Test passed - computed font weight is bold";
16 else 19 else
17 element.innerHTML = "Test failed - computed color is " + weight; 20 element.innerHTML = "Test failed - computed color is " + weight;
18 </script> 21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698