background-repeat-no-repeat

background-repeat:no-repeat

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
image
Assertion
The image is placed once in the background positioning area and not repeated in any direction.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3   <head>
 4     <title>CSS Test: background-repeat:no-repeat</title>
 5     <link rel="author" title="Jeffrey Carl Faden" href="http://www.jeffreyatw.com/">
 6     <link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
 7     <link rel="match" href="reference/background-repeat-no-repeat.htm">
 8     <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#propdef-background-repeat">
 9     <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-repeat">
10     <meta name="flags" content="image">
11     <meta name="assert" content="The image is placed once in the background positioning area and not repeated in any direction.">
12     <style type="text/css">
13       
14       div {
15         background-color: grey;
16         background-image: url("support/rectangle-96x60.png");
17         background-repeat: no-repeat;
18         height: 150px;
19         width: 240px;
20       }
21       
22     </style>
23   </head>
24   <body>
25     <p><img src="support/rectangle-96x60.png" alt="Image download support must be enabled"></p>
26     <p>Test passes if the above image appears once in the below rectangle. There should be a grey area to the right and bottom of the image.</p>
27     <div></div>
28   </body>
29 </html>