OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
2 | 2 |
3 <html xmlns="http://www.w3.org/1999/xhtml"> | 3 <html xmlns="http://www.w3.org/1999/xhtml"> |
4 | 4 |
5 <head> | 5 <head> |
6 | 6 |
7 <title>CSS Writing Modes Test: margin in 'vertical-rl' writing-mode context</t
itle> | 7 <title>CSS Writing Modes Test: margin in 'vertical-rl' writing-mode context</t
itle> |
8 | 8 |
9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserB
ugsSection/css21testsuite/" /> | 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" /> | 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" /> |
(...skipping 18 matching lines...) Expand all Loading... |
29 { | 29 { |
30 background-color: transparent; | 30 background-color: transparent; |
31 border: transparent none 0px; | 31 border: transparent none 0px; |
32 height: 3px; | 32 height: 3px; |
33 margin: 0.5em auto; | 33 margin: 0.5em auto; |
34 } | 34 } |
35 | 35 |
36 .inner | 36 .inner |
37 { | 37 { |
38 background-color: yellow; | 38 background-color: yellow; |
39 height: 50px; /* necessary, otherwise inner blocks must grow as tall as th
e height of viewport */ | 39 height: 50px; |
40 width: 50px; | 40 width: 50px; |
41 } | 41 } |
42 | 42 |
43 .foo | 43 .foo |
44 { | 44 { |
45 margin-bottom: 5px; | 45 margin-bottom: 5px; |
46 margin-left: 100px; | 46 margin-left: 100px; |
47 margin-right: 50px; | 47 margin-right: 50px; |
48 margin-top: 20px; | 48 margin-top: 20px; |
49 -webkit-writing-mode: vertical-rl; | 49 -webkit-writing-mode: vertical-rl; |
(...skipping 22 matching lines...) Expand all Loading... |
72 <div class="outer"> | 72 <div class="outer"> |
73 <div class="inner foo"></div> | 73 <div class="inner foo"></div> |
74 <hr /> | 74 <hr /> |
75 <div class="inner bar"></div> | 75 <div class="inner bar"></div> |
76 </div> | 76 </div> |
77 | 77 |
78 <div id="reference"><img src="support/blue-yellow-206w-165h.png" width="206" h
eight="165" alt="Image download support must be enabled" /></div> | 78 <div id="reference"><img src="support/blue-yellow-206w-165h.png" width="206" h
eight="165" alt="Image download support must be enabled" /></div> |
79 | 79 |
80 </body> | 80 </body> |
81 </html> | 81 </html> |
OLD | NEW |