| OLD | NEW |
| 1 <script src="../../resources/js-test.js"></script> | 1 <script src="../../resources/js-test.js"></script> |
| 2 | 2 |
| 3 <style> | 3 <style> |
| 4 input { | 4 input { |
| 5 line-height: 10px; | 5 line-height: 10px; |
| 6 display: none; | 6 display: none; |
| 7 } | 7 } |
| 8 a:visited input { | 8 a:visited input { |
| 9 background-color: yellow; | 9 background-color: yellow; |
| 10 } | 10 } |
| 11 </style> | 11 </style> |
| 12 | 12 |
| 13 <a id="a" href=""><input id="input" type="button"></input></a> | 13 <a id="a" href=""><input id="input" type="button"></input></a> |
| 14 | 14 |
| 15 <script> | 15 <script> |
| 16 if (window.testRunner) | 16 if (window.testRunner) |
| 17 testRunner.keepWebHistory(); | 17 testRunner.keepWebHistory(); |
| 18 | 18 |
| 19 a.style.color = "orange"; | 19 a.style.color = "orange"; |
| 20 a.style.color = ""; | 20 a.style.color = ""; |
| 21 shouldBeEqualToString("getComputedStyle(input).lineHeight", "normal"); | 21 shouldBeEqualToString("getComputedStyle(input).lineHeight", "16px"); |
| 22 </script> | 22 </script> |
| OLD | NEW |