| 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 |
| 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
| 5 <head> |
| 6 |
| 7 <title>CSS Writing Modes Test: 'float' and 'shrink-to-fit' logical width in 'v
ertical-lr' context</title> |
| 8 |
| 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> |
| 10 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layo
ut" title="7.1 Principles of Layout in Vertical Writing Modes" /> |
| 11 <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht"
/> |
| 12 |
| 13 <meta content="ahem" name="flags" /> |
| 14 <meta content="This test checks that 'shrink-to-fit' width is applied on logic
al width (measure)." name="assert" /> |
| 15 |
| 16 <style type="text/css"><![CDATA[ |
| 17 div.floated-left |
| 18 { |
| 19 background-color: red; |
| 20 float: left; |
| 21 font: 6.25em/1 Ahem; /* computes to 100px/100px */ |
| 22 -webkit-writing-mode: vertical-lr; |
| 23 } |
| 24 |
| 25 div.left-border |
| 26 { |
| 27 border-left: red solid 1em; |
| 28 } |
| 29 |
| 30 div.right-border |
| 31 { |
| 32 border-right: red solid 1em; |
| 33 } |
| 34 |
| 35 div#reference-overlapped-green |
| 36 { |
| 37 background-color: green; |
| 38 height: 100px; |
| 39 position: relative; |
| 40 width: 100px; |
| 41 z-index: -1; |
| 42 } |
| 43 ]]></style> |
| 44 </head> |
| 45 |
| 46 <body> |
| 47 |
| 48 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> |
| 49 |
| 50 <div class="floated-left"> |
| 51 <div class="left-border right-border"></div> |
| 52 </div> |
| 53 |
| 54 <div id="reference-overlapped-green"></div> |
| 55 |
| 56 </body> |
| 57 </html> |
| OLD | NEW |