summaryrefslogtreecommitdiffstats
path: root/layout/reftests/first-letter/379799-1.html
blob: 532b26407c1389edc0450a56928915d13466ee92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
<head>

<style id="firstLetterSheet">
  .fl:first-letter { color: red }
</style>

<script>

function boom()
{
  document.getElementById("parent").className = "";
  document.body.offsetWidth;
  document.getElementById("test").style.position = "relative";
}

</script>

</head>

<body onload="boom()">

<div class="fl" id="parent" style="color: green">
  Foo <span id="test">Bar</span>
</div>

</body>
</html>