| OLD | NEW |
| 1 <style> | 1 <style> |
| 2 #test3 { color: blue; } | 2 #test3 { color: blue; } |
| 3 </style> | 3 </style> |
| 4 <div id="test-container"> | 4 <div id="test-container"> |
| 5 <div id="test1" style="color:green; background: currentColor"></div> | 5 <div id="test1" style="color:green; background: currentColor"></div> |
| 6 <div id="test2" style="color:red; background: currentColor"></div> | 6 <div id="test2" style="color:red; background: currentColor"></div> |
| 7 <div style="color:green"> | 7 <div style="color:green"> |
| 8 <div id="test3" style="color:currentColor; background: currentColor"></div> | 8 <div id="test3" style="color:currentColor; background: currentColor"></div> |
| 9 </div> | 9 </div> |
| 10 </div> | 10 </div> |
| 11 <script src="../../fast/js/resources/js-test-pre.js"></script> | 11 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 12 <script> | 12 <script> |
| 13 description('Test that background-color is non-inherit and currentColor is handl
ed correctly.'); | 13 description('Test that background-color is non-inherit and currentColor is handl
ed correctly.'); |
| 14 var test1 = document.getElementById("test1"); | 14 var test1 = document.getElementById("test1"); |
| 15 var test2 = document.getElementById("test2"); | 15 var test2 = document.getElementById("test2"); |
| 16 var test3 = document.getElementById("test3"); | 16 var test3 = document.getElementById("test3"); |
| 17 test2.style.color = "green"; | 17 test2.style.color = "green"; |
| 18 shouldBeEqualToString('getComputedStyle(test1).backgroundColor', 'rgb(0, 128, 0)
'); | 18 shouldBeEqualToString('getComputedStyle(test1).backgroundColor', 'rgb(0, 128, 0)
'); |
| 19 shouldBeEqualToString('getComputedStyle(test2).backgroundColor', 'rgb(0, 128, 0)
'); | 19 shouldBeEqualToString('getComputedStyle(test2).backgroundColor', 'rgb(0, 128, 0)
'); |
| 20 shouldBeEqualToString('getComputedStyle(test3).backgroundColor', 'rgb(0, 128, 0)
'); | 20 shouldBeEqualToString('getComputedStyle(test3).backgroundColor', 'rgb(0, 128, 0)
'); |
| 21 </script> | 21 </script> |
| 22 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| OLD | NEW |