summaryrefslogtreecommitdiff
path: root/layout/reftests/details-summary/float-open-details-contains-float-right.html
blob: 2b38050849c9f5e17f85028ff968b0c595d8268b (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: right;
    width: 200px;
    height: 400px;
    background-color: lightgreen;
  }
  details {
    float: right;
    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>