summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/background-color-body-propagation-002.html
blob: 1c42637e505b56851025423ce7365138373fb0c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<title>CSS Backgrounds and Borders Test: body background not propagating when html does</title>
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#body-background">
<link rel="match" href="background-color-body-propagation-ref.html">
<style>
  html {
    background-color: green;
    background-image: none;
  }
  body {
    background-color: red;
    margin: 0;
  }
  p {
    background: green;
  }
</style>
<p>The viewport should have a green background.</p>