Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>WPT test: attr() in ::details-content::before/::after pseudo</title>
<link rel="match" href="details-content-pseudo-attr-ref.html">
<style>
::details-content::after {
color: green;
content: attr(attr-a, "FAILED");
}
::details-content::before {
color: blue;
content: attr(attr-b, "FAILED");
}
</style>
<details open attr-a=" [after]" attr-b="[before] ">details-content</details>