summaryrefslogtreecommitdiff
path: root/layout/reftests/details-summary/float-open-details-contains-float-left.html
blob: 372fef96d75b703261b6bd4f128cd45175d16e9c (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
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
   - http://creativecommons.org/publicdomain/zero/1.0/ -->

<html>
  <style>
  body {
    width: 400px;
  }
  div#float {
    float: left;
    width: 200px;
    height: 400px;
    background-color: lightgreen;
  }
  details {
    float: left;
    background-color: orange;
  }
  summary {
    background-color: green;
    /* Hide the triangle for comparing with div in reftest. */
    list-style-type: none;
  }
  </style>
  <body>
    <details open>
      <summary>Summary</summary>
      <div id="float"></div>
    </details>
  </body>
</html>