| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Test: Clear applied to element with 'display' set to 'table-c
aption'</title> |
| 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
| 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/
BrowserBugsSection/css21testsuite/" /> <!-- 2013-01-10 --> |
| 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-c
lear" /> |
| 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-cont
rol" /> |
| 9 |
| 10 <link rel="match" href="clear-applies-to-001-ref.xht" /> |
| 11 |
| 12 <meta name="flags" content="" /> |
| 13 <meta name="assert" content="The 'clear' property does not apply to elem
ents with a display of 'table-caption' because an anonymous table wrapper box wi
ll be generated for a misparented table-caption element and such anonymous table
wrapper box creates a block formatting context. Clear will not apply to floats
outside a block formatting context." /> |
| 14 <style type="text/css"> |
| 15 body {margin: 8px;} |
| 16 |
| 17 p |
| 18 { |
| 19 float: left; |
| 20 line-height: 1.25; |
| 21 margin: 1em 0; |
| 22 width: 320px; |
| 23 } |
| 24 |
| 25 #caption |
| 26 { |
| 27 background: blue; |
| 28 clear: both; |
| 29 color: blue; |
| 30 display: table-caption; |
| 31 height: 1in; |
| 32 width: 1in; |
| 33 } |
| 34 </style> |
| 35 </head> |
| 36 <body> |
| 37 <p>Test passes if there is a filled blue square to the right of this tex
t.</p> |
| 38 |
| 39 <div id="caption">C</div> |
| 40 |
| 41 </body> |
| 42 </html> |
| OLD | NEW |