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: 'float: left' and 'float: right' in a 'vertical
-rl' block formating context (basic)</title> | 7 <title>CSS Writing Modes Test: 'float: left' and 'float: right' in a 'vertical
-rl' block formating context (basic)</title> |
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" /> |
11 <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht"
/> | 11 <link rel="match" href="../css21/reference/ref-filled-green-100px-square.xht"
/> |
12 | 12 |
13 <meta content="ahem image" name="flags" /> | 13 <meta content="ahem image" name="flags" /> |
14 <meta content="This test checks that a floated left box and a floated right bo
x in a containing block with 'writing-mode' set to 'vertical-rl' will be respect
ively floated at the line-left side of its line box and floated at line-right of
its line box." name="assert" /> | 14 <meta content="This test checks that a floated left box and a floated right bo
x in a containing block with 'writing-mode' set to 'vertical-rl' will be respect
ively floated at the line-left side of its line box and floated at line-right of
its line box." name="assert" /> |
15 | 15 |
16 <style type="text/css"><![CDATA[ | 16 <style type="text/css"><![CDATA[ |
17 div#wrapper | 17 div#wrapper |
18 { | 18 { |
19 background: red url("support/pattern-gr-rg-100x100.png") no-repeat; | 19 background: red url("support/pattern-gr-rg-100x100.png") no-repeat; |
20 color: transparent; | 20 color: transparent; |
21 font: 3.125em/1 Ahem; /* computes to 50px/50px */ | 21 font: 50px/1 Ahem; /* computes to 50px/50px */ |
22 height: 100px; | 22 height: 100px; |
23 width: 100px; | 23 width: 100px; |
24 -webkit-writing-mode: vertical-rl; | 24 -webkit-writing-mode: vertical-rl; |
25 } | 25 } |
26 | 26 |
27 div#floated-right | 27 div#floated-right |
28 { | 28 { |
29 color: green; | 29 color: green; |
30 float: right; | 30 float: right; |
31 } | 31 } |
32 | 32 |
33 div#floated-left | 33 div#floated-left |
34 { | 34 { |
35 color: green; | 35 color: green; |
36 float: left; | 36 float: left; |
37 } | 37 } |
38 ]]></style> | 38 ]]></style> |
39 </head> | 39 </head> |
40 | 40 |
41 <body> | 41 <body> |
42 | 42 |
43 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> | 43 <p>Test passes if there is a filled green square and <strong>no red</strong>.<
/p> |
44 | 44 |
45 <div id="wrapper"> | 45 <div id="wrapper"> |
46 A <div id="floated-left">L</div> <div id="floated-right">R</div> B | 46 A <div id="floated-left">L</div> <div id="floated-right">R</div> B |
47 </div> | 47 </div> |
48 | 48 |
49 </body> | 49 </body> |
50 </html> | 50 </html> |
OLD | NEW |