c536-bgpos-000.xht (3049B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: background-position</title> 5 <meta name="flags" content="ahem image" /> 6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#background-position"/> 7 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html"/> 8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 9 <link rel="reviewer" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-03-29 --> 10 <link rel="match" href="c536-bgpos-000-ref.xht" /> 11 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"><![CDATA[ 14 html,body,div { margin: 0; border: 0; padding: 0; } 15 div { font: 15px/1 Ahem; color: white; width: 11em; } 16 .right { width: auto; text-align: right; } 17 18 /* tests */ 19 body {background-image: url(support/swatch-red.png); background-position: right top; 20 background-repeat: no-repeat;} 21 .one {background-image: url(support/swatch-red.png); background-position: center; 22 background-repeat: no-repeat;} 23 .two {background-image: url(support/swatch-red.png); background-position: 50% 50%; 24 background-repeat: no-repeat;} 25 .three {background-image: url(support/swatch-red.png); background-position: bottom right; 26 background-repeat: no-repeat;} 27 ]]></style> 28 <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties" title="14.2.1 Background properties: 'background-color', 'background-image', 'background-repeat', 'background-attachment', 'background-position', and 'background'"/> 29 </head> 30 <body> 31 <div class="right">X</div> 32 <p>There should be no red on this page (look in the upper right hand corner too).</p> 33 <div class="one"> 34             35             36      X      37             38             39 </div> 40 <div class="two"> 41             42             43      X      44             45             46 </div> 47 <div class="three"> 48             49             50             51             52           X 53 </div> 54 </body> 55 </html>