4 <link rel="stylesheet" href="../resources/region-style.css">
10 .dummyFloat /* This float pushes away the floats in the region. So we make sure that the floats flowed in
11 the regions are positioned correctly. */
24 border-left: gray 50px solid; /* The border will be painted on top of the first region */
25 position: relative; /* Making box2 have its own layer so if, by mistake, it gets to render the redBox
26 instead of box1, the redBox will be visible */
37 <div class="flowArticle">
38 <div class="redBox"></div>
39 <div class="orangeBox"></div>
43 <div class="dummyFloat"></div>
44 <!-- The following element will get its own layer. -->
45 <div class="regionArticle borderBox"></div>
49 <div class="regionArticle borderBox"></div>
52 <p>Testing that regions become layers as required by the content that display in those regions.
53 In this case the region is also a float and we are testing that the correct enclosing
54 layer will paint the region as needed. In this case box1 is responsible of painting
55 the first region, even though the whole element fits inside box2.
56 There should be two boxes: one taller gray box and one orange box. The orange box has a black border.
57 The test fails if there's any red on screen.