Regression(r188105): Seems to have caused crashes during PLT on some iPads
[WebKit-https.git] / LayoutTests / fast / css / background-currentcolor.html
1 <!DOCTYPE html>
2 <style>
3 #test3 { color: blue; }
4 </style>
5 <div id="test-container">
6   <div id="test1" style="color:green; background: currentColor"></div>
7   <div id="test2" style="color:red; background: currentColor"></div>
8   <div style="color:green">
9     <div id="test3" style="color:currentColor; background: currentColor"></div>
10   </div>
11 </div>
12 <script src="../../resources/js-test-pre.js"></script>
13 <script>
14 description('Test that background-color is non-inherit and currentColor is handled correctly.');
15 var test1 = document.getElementById("test1");
16 var test2 = document.getElementById("test2");
17 var test3 = document.getElementById("test3");
18 test2.style.color = "green";
19 shouldBeEqualToString('getComputedStyle(test1).backgroundColor', 'rgb(0, 128, 0)');
20 shouldBeEqualToString('getComputedStyle(test2).backgroundColor', 'rgb(0, 128, 0)');
21 shouldBeEqualToString('getComputedStyle(test3).backgroundColor', 'rgb(0, 128, 0)');
22 </script>
23 <script src="../../resources/js-test-post.js"></script>