| OLD | NEW |
| 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> |
| OLD | NEW |