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