Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Backgrounds and Borders Test: propagate body background while display changes</title>
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
<link rel="match" href="background-color-body-propagation-ref.html">
<style>body { margin: 0 }</style>
<p>The viewport should have a green background.</p>
<script>
document.body.offsetTop;
document.body.style = "display:inline;background:green";
</script>