background-position-applies-to-001a-ref.xht (1215B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Reftest Reference</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 11 <style type="text/css"><![CDATA[ 12 body {margin: 8px;} 13 14 div 15 { 16 background-color: blue; 17 height: 15px; 18 margin-left: 93px; 19 20 /* 21 22 From left to right: 23 24 2px : left border-spacing 25 + 26 25px : border-left of 1st cell 27 + 28 1px : padding-left of 1st cell 29 + 30 1px : padding-right of 1st cell 31 + 32 25px : border-right of 1st cell 33 + 34 2px : border-spacing between 1st and 2nd cell 35 + 36 25px : border-left of 2nd cell 37 + 38 1px : padding-left of 2nd cell 39 + 40 1px : padding-right of 2nd cell 41 + 42 25px : border-right of 2nd cell 43 - 44 15px : width of blue square 45 =============================== 46 93px 47 48 */ 49 50 margin-top: 18px; /* margin-bottom of p + top border-spacing */ 51 width: 15px; 52 } 53 ]]></style> 54 55 </head> 56 57 <body> 58 59 <p>Test passes if there is <strong>one and only 1 small filled blue square</strong>.</p> 60 61 <div></div> 62 63 </body> 64 </html>