Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/the-css-user-agent-style-sheet-and-presentational-hints/body-bgcolor-attribute-change.html - WPT Dashboard Interop Dashboard
<!doctype html>
<link rel="match" href="body-bgcolor-attribute-change-ref.html">
<body bgcolor="yellow">
Passes if the background is green.
</body>
<script>
document.body.offsetTop;
document.body.setAttribute("bgcolor", "green");
</script>