summaryrefslogtreecommitdiffstats
path: root/layout/reftests/floats/1260031-1.html
blob: fdb2b99816d5c4680769232bebac75b5d5ac0097 (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
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Bug 1260031 - Intrinsic width with float</title>
  <style>
    #wrapper {
      background: red;
      width: -moz-fit-content;
      width: fit-content;
    }
    #left {
      float: left;
      width: 50px;
      height: 50px;
      background: green;
    }
    #right {
      width: 50px;
      height: 50px;
      background: blue;
    }
  </style>
</head>
<body>
  <div id="test">
    <div id="wrapper">
      <div id="left"></div>
      <div id="right"></div>
    </div>
  </div>
  <script>
    document.getElementById("right").style = location.search.slice(1);
  </script>
</body>
</html>