summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/373383-1.html
blob: 62ccd58ddca19fdef1444905f3c018f3f1d9f4b1 (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
<!DOCTYPE html>
<html>
<head>
  <style type="text/css">
    #a { width: 15em; border: 1px solid black; }
    #b { float: right; width: 8em; height: 3em; background: #ccc; }
  </style>
</head>
<body>
  <div id="a">
    <div id="b">float right</div>
    <div>Long text long text long text long text long text long text long text long text long text long text long text long text long text</div>
  </div>
  
  <script>
  var longWord = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

  document.body.offsetWidth;
  n = document.getElementById("b").nextSibling;
  n.data = longWord + n.data;
  
  </script>
</body>
</html>