after-content-display-015.xht (1241B)
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: :after generated content - display table-caption</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/generate.html#before-after-content" /> 11 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" /> 12 <link rel="match" href="after-content-display-002-ref.xht" /> 13 <meta content="Generated content can have their own display value explicitly set in which case they behave as if they were real elements inserted just inside their associated element." name="assert" /> 14 15 <style type="text/css"><![CDATA[ 16 div:after 17 { 18 content: "Filler\A0text"; 19 /* Without a table box, the table-caption may shrink to minimum 20 content width (MCW), thus the no-breaking-space (in utf-8) 21 addition to avoid line-wrapping causing 2 lines. */ 22 display: table-caption; 23 } 24 ]]></style> 25 26 </head> 27 28 <body> 29 30 <p>Test passes if there are <strong>2 lines of "Filler text"</strong>.</p> 31 32 <div>Filler text</div> 33 34 </body> 35 </html>