background-position-applies-to-005b.xht (1766B)
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-001b-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 table {border-spacing: 0px;} 18 19 colgroup 20 { 21 background-image: url("/css/support/60x60-red.png"); 22 background-position: bottom right; 23 background-repeat: no-repeat; 24 } 25 26 td {padding: 0px;} 27 28 td#top-left {border-top: transparent solid 60px;} 29 30 td#top-right {border-right: transparent solid 60px;} 31 32 td#bottom-left 33 { 34 border-bottom: transparent solid 60px; 35 border-left: transparent solid 60px; 36 } 37 38 td#green-overlapping {border-bottom: green solid 60px;} 39 ]]></style> 40 41 </head> 42 43 <body> 44 45 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 46 47 <table> 48 <colgroup><col></col><col></col></colgroup> 49 <tbody> 50 <tr><td id="top-left"></td><td id="top-right"></td></tr> 51 <tr><td id="bottom-left"></td><td id="green-overlapping"></td></tr> 52 </tbody> 53 </table> 54 55 </body> 56 </html>