summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/page-box/page-container-009.xht
blob: f31fafabf8dc9e94602c90681ef3ec52064fe9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>CSS Test: Paged Media Body Background</title>
  <link rel="author" title="Melinda Grant" href="mailto:melinda.grant@hp.com" />
  <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#containing-block-details" />
  <link rel="help" href="http://www.w3.org/TR/css3-page/#painting" />
  <meta name="flags" content="paged" />
  <meta name="assert" content="For documents in the html namespace, a background on 'body' will cover the page area." />
  <style type="text/css">
    @page {
        margin: 7%;
    }
    html {
        background-color: inherit;
        background-image: inherit;
}
    body {
        background-color: #ddffdd;
}

  </style>
 </head>
 <body>
   <div>
     <p>There is a white margin around the edge of this page.  The top and
     bottom margins are of equal height, and the right and left margins are of
     equal width. The rest of the page,
     including this text, has a pale green background.
     </p>
   </div>
 </body>
</html>