background-position-applies-to-005a.xht (1410B)
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 Test: Background-position applied to elements with 'display' set to 'table-column-group'</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <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'" /> 11 <link rel="match" href="background-position-applies-to-001a-ref.xht" /> 12 13 <meta name="flags" content="image" /> 14 <meta name="assert" content="The 'background-position' property applies to elements with 'display' set to 'table-column-group'." /> 15 16 <style type="text/css"><![CDATA[ 17 colgroup 18 { 19 background-image: url("support/swatch-blue.png"); 20 background-position: top right; 21 background-repeat: no-repeat; 22 } 23 24 td {border: transparent solid 25px;} 25 ]]></style> 26 27 </head> 28 29 <body> 30 31 <p>Test passes if there is <strong>one and only 1 small filled blue square</strong>.</p> 32 33 <table> 34 <colgroup><col></col><col></col></colgroup> 35 <tbody> 36 <tr><td></td><td></td></tr> 37 <tr><td></td><td></td></tr> 38 </tbody> 39 </table> 40 41 </body> 42 </html>