tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / fast / regions / text-region-split-vertical-rl.html
1 <!DOCTYPE html>
2
3 <style>
4     html { -webkit-writing-mode: vertical-rl; }
5     
6     #content { -webkit-flow-into: flow; }
7     .region { -webkit-flow-from: flow; }
8     .finished #content, .finished .region { display: none; }
9
10     #region1 { width: 70px; height: 60px; }
11     #region2 { width: 200px; height: 100px; }
12     #region3 { width: 110px; height: 120px; }
13     #region4 { width: 220px; height: 100px; }
14     #region5 { width: 110px; height: 200px; }
15     #region6 { width: 300px; height: 120px; }
16 </style>
17
18 <div id="content">
19     <p style="-webkit-region-break-after: always"><b class="check region1">Text in region 1.</b> This paragraph has "<i>-webkit-region-break-after: always</i>". <b class="check region2">There should be nothing in this region after this line.</b></p>
20     
21     <p><b class="check region3">First element in the region 3.</b> Some text inside a flow. Some text inside a flow. Some text inside a flow. <b class="check region4">Text in region 4.</b> </p>
22     
23     <p>
24         <!-- Using the paragraph element to test nested blocks region-breaks. -->
25         <div><span class="check region4">Simple line in region 4.</span></div>
26         <div style="-webkit-margin-before:80px;"><b class="check region5">First line in region 5.</b> This paragraph displays in region 5 because it has a margin-top, which is too high to fit in the previous region.</div>
27         <div style="-webkit-region-break-before: always"><b class="check region6">First line in region 6.</b> This paragraph uses "<i>-webkit-region-break-before: always</i>".</div>
28     </p>
29 </div>
30
31 <div id="region1" class="region"></div>
32 <div id="region2" class="region"></div>
33 <div id="region3" class="region"></div>
34 <div id="region4" class="region"></div>
35 <div id="region5" class="region"></div>
36 <div id="region6" class="region"></div>
37
38 <script src="resources/helper.js"></script>
39 <script>
40     if (window.layoutTestController)
41         layoutTestController.dumpAsText();
42     if (testContentToRegionsMapping())
43         document.body.className = "finished";
44 </script>