| 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: border in 'vertical-lr' writing-mode context</t
itle> |
| 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 <!-- |
| 12 Test inspired by |
| 13 http://lxr.mozilla.org/mozilla-central/source/layout/reftests/writing-mode/109
6224-1b.html |
| 14 --> |
| 15 <link rel="match" href="margin-vrl-002-ref.xht" /> |
| 16 |
| 17 <meta content="image" name="flags" /> |
| 18 <meta content="This test checks that border-left, border-right, border-top and
border-bottom do not change in vertical writing-mode. The border-left property
of a box still affects the lefthand border of such box." name="assert" /> |
| 19 |
| 20 <style type="text/css"><![CDATA[ |
| 21 .outer |
| 22 { |
| 23 border: blue solid 3px; |
| 24 width: 200px; |
| 25 } |
| 26 |
| 27 hr |
| 28 { |
| 29 background-color: blue; |
| 30 border: transparent none 0px; |
| 31 height: 9px; |
| 32 margin: 0px; |
| 33 } |
| 34 |
| 35 .inner |
| 36 { |
| 37 background-color: transparent; |
| 38 height: 50px; /* necessary, otherwise inner blocks must grow as tall as th
e height of viewport */ |
| 39 } |
| 40 |
| 41 .foo |
| 42 { |
| 43 border-bottom: blue solid 5px; |
| 44 border-left: blue solid 100px; |
| 45 border-right: blue solid 50px; |
| 46 border-top: blue solid 20px; |
| 47 -webkit-writing-mode: vertical-lr; |
| 48 } |
| 49 |
| 50 .bar |
| 51 { |
| 52 border-bottom: blue solid 20px; |
| 53 border-left: blue solid 50px; |
| 54 border-right: blue solid 100px; |
| 55 border-top: blue solid 5px; |
| 56 -webkit-writing-mode: vertical-lr; |
| 57 } |
| 58 |
| 59 div#reference |
| 60 { |
| 61 margin-top: 1em; |
| 62 } |
| 63 ]]></style> |
| 64 </head> |
| 65 |
| 66 <body> |
| 67 |
| 68 <p>Test passes if there are 2 <strong>identical</strong> blue rectangles, each
with 2 small yellow squares: the layout must be identical.</p> |
| 69 |
| 70 <div class="outer"> |
| 71 <div class="inner foo"><img src="support/swatch-yellow.png" width="50" heigh
t="50" alt="Image download support must be enabled" /></div> |
| 72 <hr /> |
| 73 <div class="inner bar"><img src="support/swatch-yellow.png" width="50" heigh
t="50" alt="Image download support must be enabled" /></div> |
| 74 </div> |
| 75 |
| 76 <div id="reference"><img src="support/blue-yellow-206w-165h.png" width="206" h
eight="165" alt="Image download support must be enabled" /></div> |
| 77 |
| 78 </body> |
| 79 </html> |
| OLD | NEW |