OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 | 4 |
5 <style> | 5 <style> |
6 div[readonly="red"] { | 6 div[readonly="red"] { |
7 color: red; | 7 color: red; |
8 } | 8 } |
9 div[type="blue"] { | 9 div[type="blue"] { |
10 color: blue; | 10 color: blue; |
11 } | 11 } |
12 </style> | 12 </style> |
13 | 13 |
14 <div black>Black</div> | 14 <div black>Black</div> |
15 <div readonly="red">Red</div> | 15 <div readonly="red">Red</div> |
16 <div type="blue">Blue</div> | 16 <div type="blue">Blue</div> |
17 | 17 |
18 <script> | 18 <script> |
19 description("Make sure special case style sharing for readonly and type attribut
es works"); | 19 description("Make sure special case style sharing for readonly and type attribut
es works"); |
20 | 20 |
21 shouldBe('getComputedStyle(document.querySelector("[black]")).color','"rgb(0, 0,
0)"'); | 21 shouldBe('getComputedStyle(document.querySelector("[black]")).color','"rgb(0, 0,
0)"'); |
22 shouldBe('getComputedStyle(document.querySelector("[readonly]")).color','"rgb(25
5, 0, 0)"'); | 22 shouldBe('getComputedStyle(document.querySelector("[readonly]")).color','"rgb(25
5, 0, 0)"'); |
23 shouldBe('getComputedStyle(document.querySelector("[type]")).color','"rgb(0, 0,
255)"'); | 23 shouldBe('getComputedStyle(document.querySelector("[type]")).color','"rgb(0, 0,
255)"'); |
24 </script> | 24 </script> |
25 | 25 |
OLD | NEW |