4 <title>Test for first-letter for nested elements
</title>
6 .test:first-letter { color: green; }
7 .boxed { border: solid
1px; }
9 <script src=
"../../resources/js-test.js"></script>
12 <div id=
"description"></div>
14 <p class=
"test" id=
"test_p_1">
15 <span class=
"boxed" id=
"test_span_1">Span
</span>
18 <span class=
"boxed" id=
"test_span_2" class=
"boxed">Span
</span>
21 <span class=
"boxed" id=
"ref_span" style=
"font-size:32px"><span style=
"color:green">S
</span>pan
</span>
24 <div id=
"console"></div>
27 document
.body
.offsetTop
;
29 document
.getElementById('test_p_1').style
.fontSize
= '32px';
30 document
.getElementById('test_span_2').style
.fontSize
= '32px';
32 document
.body
.offsetTop
;
34 description("The three spans below should look the same.");
35 shouldBe("document.getElementById('test_span_1').offsetWidth", "document.getElementById('ref_span').offsetWidth");
36 shouldBe("document.getElementById('test_span_2').offsetWidth", "document.getElementById('ref_span').offsetWidth");