OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <html style="direction:rtl"> | |
3 <head> | |
4 <style> | |
5 #content { | |
6 -webkit-flow-into: flow1; | |
7 text-align: justify; | |
8 padding: 5px; | |
9 } | |
10 | |
11 #first-box { | |
12 margin:10% | |
13 } | |
14 | |
15 #second-box { | |
16 position:absolute; | |
17 -webkit-writing-mode:vertical-rl; | |
18 left:0; | |
19 top:0; | |
20 bottom:0; | |
21 width:100px; | |
22 background-color:green | |
23 } | |
24 | |
25 #region1, #region2, #region3 { | |
26 border: 1px solid black; | |
27 -webkit-flow-from: flow1; | |
28 } | |
29 | |
30 #region1 { | |
31 width: 200px; | |
32 height: 150px; | |
33 } | |
34 | |
35 #region2 { | |
36 width: 300px; | |
37 height: 180px; | |
38 } | |
39 | |
40 #region3 { | |
41 width: 120px; | |
42 height: 120px; | |
43 } | |
44 </style> | |
45 </head> | |
46 <body> | |
47 <p style="direction:ltr">The green positioned object should only be as tall as t
he first region it | |
48 is contained in. It should fill the left half of the first region.</p> | |
49 | |
50 <div id="content"> | |
51 <div id="first-box"> | |
52 <div id="second-box"> | |
53 | |
54 </div> | |
55 </div> | |
56 </div> | |
57 | |
58 <div id="container"> | |
59 <div id="region1"></div> | |
60 <div id="region2"></div> | |
61 <div id="region3"></div> | |
62 </div> | |
OLD | NEW |