| <script src="../../resources/js-test-pre.js"></script> |
| a:link { line-height: 200px } |
| <a id="a_regular">regular anchor</a> |
| <a id="a_link" href="#">link anchor</a> |
| description("This test verifies that line-height gets applied from link-only style."); |
| var regularComputedStyle = window.getComputedStyle(document.getElementById("a_regular")); |
| var linkComputedStyle = window.getComputedStyle(document.getElementById("a_link")); |
| shouldBe("regularComputedStyle.lineHeight", "'100px'"); |
| shouldBe("linkComputedStyle.lineHeight", "'200px'"); |
| document.getElementById("gunk").remove(); |
| <script src="../../resources/js-test-post.js"></script> |