summaryrefslogtreecommitdiffstats
path: root/layout/reftests/details-summary/details-percentage-height-children.html
blob: d00f4053b51aa4cc10f4b246acfcd54f695dedfc (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
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
   - http://creativecommons.org/publicdomain/zero/1.0/ -->

<html>
  <style>
  details {
    background-color: orange;
    width: 500px;
    height: 300px;
  }
  summary::-moz-list-bullet {
    /* Hide the triangle for comparing with div in reftest. */
    list-style-type: none;
  }
  summary {
    background-color: green;
    width: 50%;
    height: 40%;
  }
  div#inner {
    background-color: cyan;
    width: 50%;
    height: 60%;
  }
  </style>
  <body>
    <details open>
      <summary>Summary: 40% height</summary>
      <div id="inner">Div: 60% height</div>
    </details>
  </body>
</html>