| 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: 'vertical-rl' and margin collapsing - collapse
through sibling</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/#logical-direc
tion-layout" title="7.4 Flow-Relative Mappings" /> |
| 11 <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht"
/> |
| 12 |
| 13 <meta content="ahem image" name="flags" /> |
| 14 <meta name="assert" content="This test checks that horizontal margins of boxes
can collapse through a sibling box whose left and right margins collapse in 've
rtical-rl' writing-mode." /> |
| 15 |
| 16 <style type="text/css"><![CDATA[ |
| 17 div |
| 18 { |
| 19 font: 25px/1em Ahem; |
| 20 height: 4em; |
| 21 } |
| 22 |
| 23 div#wrapper |
| 24 { |
| 25 background-image: url("support/margin-collapse-2em-space-wm-vert.png"); |
| 26 -webkit-writing-mode: vertical-rl; |
| 27 } |
| 28 |
| 29 div#right-most-sibling |
| 30 { |
| 31 background-color: green; |
| 32 margin-left: 2em; |
| 33 width: 1em; |
| 34 } |
| 35 |
| 36 div#middle-sibling |
| 37 { |
| 38 margin-left: 2em; |
| 39 margin-right: 2em; |
| 40 } |
| 41 |
| 42 div#left-most-sibling |
| 43 { |
| 44 background-color: green; |
| 45 margin-right: 2em; |
| 46 width: 1em; |
| 47 } |
| 48 ]]></style> |
| 49 |
| 50 </head> |
| 51 |
| 52 <body> |
| 53 |
| 54 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> |
| 55 |
| 56 <div id="wrapper"> |
| 57 <div id="right-most-sibling"></div> |
| 58 <div id="middle-sibling"></div> |
| 59 <div id="left-most-sibling"></div> |
| 60 </div> |
| 61 |
| 62 </body> |
| 63 </html> |
| OLD | NEW |