summaryrefslogtreecommitdiffstats
path: root/layout/reftests/details-summary/details-percentage-height-children.html
blob: 75a9bf1727e6152c419fd4458625c1d15a16b41a (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 {
    /* 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>