blob: 16194a0441e8ba8b90953764c2bc2924c9b6c998 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!-- The blue and green text boxes should not overlap -->
<html>
<script src="../../resources/ahem.js"></script>
<body style="font: 1em/1 Ahem, sans-serif;">
<ruby id="test" style="display: block; color: blue">
ABCD
</ruby>
<div style="font-size: 800%; color: green">
EFGH
</div>
<script>
document.body.offsetTop;
var test = document.getElementById("test");
test.style.fontSize = "800%";
</script>
</body>
</html>
|