mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
23 lines
409 B
HTML
23 lines
409 B
HTML
<!DOCTYPE HTML>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<style>
|
|
body::before {
|
|
content:attr(my-attr);
|
|
}
|
|
body::after {
|
|
content:attr(my-attr-2);
|
|
}
|
|
</style>
|
|
<script>
|
|
function fixupDOM() {
|
|
document.body.setAttribute("my-attr", "before");
|
|
document.body.setAttribute("my-attr-2", "after");
|
|
document.documentElement.className = "";
|
|
}
|
|
</script>
|
|
</head>
|
|
<body my-attr-2="xyz" onload="fixupDOM()">
|
|
</body>
|
|
</html>
|