OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <link rel="stylesheet" href="../resources/region-style.css"> | |
5 <style> | |
6 .dummyFloat | |
7 { | |
8 float: left; | |
9 width: 1px; | |
10 height: 10px; | |
11 } | |
12 .box1 | |
13 { | |
14 width: 50px; | |
15 height: 10px; | |
16 } | |
17 .box2 | |
18 { | |
19 /* The following border will be painted on top of the first regi
on */ | |
20 border-left: gray 50px solid; | |
21 /* Making box2 have its own layer */ | |
22 position: relative; | |
23 width: 200px; | |
24 height: 60px; | |
25 } | |
26 .borderBox | |
27 { | |
28 border: none; | |
29 } | |
30 </style> | |
31 </head> | |
32 <body> | |
33 <div class="box1"> | |
34 <div class="dummyFloat"></div> | |
35 <div class="borderBox" style="position: relative"> | |
36 <div class="redBox"></div> | |
37 </div> | |
38 </div> | |
39 | |
40 <div class="box2"> | |
41 <div class="borderBox"> | |
42 <div class="orangeBox"></div> | |
43 </div> | |
44 </div> | |
45 | |
46 <p>Testing that regions become layers as required by the content that di
splay in those regions. | |
47 In this case the region is also a float and we are testing that the corr
ect enclosing | |
48 layer will paint the region as needed. In this case box1 is responsible
of painting | |
49 the first region, even though the whole element fits inside box2. | |
50 There should be two boxes: one taller gray box and one orange box. The o
range box has a black border. | |
51 The test fails if there's any red on screen. | |
52 </p> | |
53 </body> | |
54 </html> | |
OLD | NEW |