summaryrefslogtreecommitdiffstats
path: root/layout/reftests/details-summary/open-details-before.html
blob: 31008a61865d34a3bb1a4f61419f137a26a8dceb (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
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
   - http://creativecommons.org/publicdomain/zero/1.0/ -->
<head>
  <style>
    summary {
      list-style-type: none;
    }
    details::before {
      content: "This is the details.";
      /* Match the margins and display of <p> */
      display: block;
      margin-block-start: 1em;
      margin-block-end: 1em;
    }
  </style>
</head>
<html>
  <body>
    <details open>
      <summary>Summary</summary>
    </details>
  </body>
</html>