OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test for first-letter for nested elements</title> | 4 <title>Test for first-letter for nested elements</title> |
5 <style> | 5 <style> |
6 .test:first-letter { color: green; } | 6 .test:first-letter { color: green; } |
7 .boxed { border: solid 1px; } | 7 .boxed { border: solid 1px; } |
8 </style> | 8 </style> |
9 <script src="../js/resources/js-test-pre.js"></script> | 9 <script src="../../resources/js-test.js"></script> |
10 </head> | 10 </head> |
11 <body> | 11 <body> |
12 <div id="description"></div> | 12 <div id="description"></div> |
13 | 13 |
14 <p class="test" id="test_p_1"> | 14 <p class="test" id="test_p_1"> |
15 <span class="boxed" id="test_span_1">Span</span> | 15 <span class="boxed" id="test_span_1">Span</span> |
16 </p> | 16 </p> |
17 <p class="test"> | 17 <p class="test"> |
18 <span class="boxed" id="test_span_2" class="boxed">Span</span> | 18 <span class="boxed" id="test_span_2" class="boxed">Span</span> |
19 </p> | 19 </p> |
(...skipping 10 matching lines...) Expand all Loading... |
30 document.getElementById('test_span_2').style.fontSize = '32px'; | 30 document.getElementById('test_span_2').style.fontSize = '32px'; |
31 | 31 |
32 document.body.offsetTop; | 32 document.body.offsetTop; |
33 | 33 |
34 description("The three spans below should look the same."); | 34 description("The three spans below should look the same."); |
35 shouldBe("document.getElementById('test_span_1').offsetWidth", "document.getElem
entById('ref_span').offsetWidth"); | 35 shouldBe("document.getElementById('test_span_1').offsetWidth", "document.getElem
entById('ref_span').offsetWidth"); |
36 shouldBe("document.getElementById('test_span_2').offsetWidth", "document.getElem
entById('ref_span').offsetWidth"); | 36 shouldBe("document.getElementById('test_span_2').offsetWidth", "document.getElem
entById('ref_span').offsetWidth"); |
37 </script> | 37 </script> |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |