caption-position-001-ref.xht (1169B)
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 div 13 { 14 border: black solid medium; 15 padding: 1em; 16 margin-top: 1em; 17 width: 98px; 18 } 19 20 table 21 { 22 border-spacing: 0px; 23 table-layout: fixed; 24 } 25 26 caption {text-align: left;} 27 28 caption#first {margin: 1em 0em;} 29 30 td#second {padding: 1em 0em;} 31 32 td {padding: 0px;} 33 ]]></style> 34 35 </head> 36 37 <body> 38 39 <p>Test passes if the word ABOVE is above the cat image in both rectangles.</p> 40 41 <div> 42 43 <table> 44 45 <caption id="first">ABOVE</caption> 46 47 <tr> 48 <td><img src="../support/cat.png" alt="Image download support must be enabled" /></td></tr> 49 50 </table> 51 52 </div> 53 54 55 <div> 56 57 <table> 58 59 <caption>ABOVE</caption> 60 61 <tr> 62 63 <td id="second"><img src="../support/cat.png" alt="Image download support must be enabled" /></td></tr> 64 65 </table> 66 67 </div> 68 69 </body> 70 </html>