Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<title>::details-content pseudo element supports ::before and ::after</title>
<link rel="match" href="details-pseudo-elements-004-ref.html">
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-details-and-summary-elements">
<style>
details::details-content::before { content: "[before]"; }
details::details-content::after { content: "[after]"; }
</style>
<details open>
<summary>summary</summary>
contents
</details>