OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <meta charset="utf-8"> | |
5 <script src="../../../resources/js-test.js"></script> | |
6 <script src="../resources/helper.js"></script> | |
7 <style> | |
8 body { font-family: monospace; } | |
9 #wrapper { font-size: 20px; } | |
10 .border { border: 1px solid red; } | |
11 #inlineOnly { -webkit-flow-into: flow1; background-color: lightblue; height:
135px; padding: 10px;} | |
12 #region1 { -webkit-flow-from: flow1; width: 250px; height: 70px; left: 20px;
top: 250px;} | |
13 #region2 { -webkit-flow-from: flow1; width: 250px; height: 60px; left: 20px;
top: 300px;} | |
14 </style> | |
15 </head> | |
16 <body> | |
17 <div id="description"></div> | |
18 <div id="wrapper"><span id="inlineOnly"></span></div> | |
19 <div id="region1" class="border"></div> | |
20 <div id="region2" class="border"></div> | |
21 <div id="console"></div> | |
22 <script> | |
23 if (window.layoutTestController) | |
24 layoutTestController.dumpAsText(); | |
25 | |
26 description("[CSSRegions] Test for Region::getRegionFlowRanges for inline el
ements"); | |
27 var region1 = document.getElementById("region1"); | |
28 var region2 = document.getElementById("region2"); | |
29 | |
30 | |
31 debug("Flow test"); | |
32 range1 = region1.webkitGetRegionFlowRanges(); | |
33 shouldEvaluateTo("range1.length", 1); | |
34 compareArrays(getRangeAt(range1, 0), ["wrapper", 0, "wrapper", 1]); | |
35 range2 = region2.webkitGetRegionFlowRanges(); | |
36 shouldEvaluateTo("range2.length", 0); | |
37 | |
38 function hideRegionsAndFlows() { | |
39 document.getElementById("region1").style.visibility = "hidden"; | |
40 document.getElementById("region2").style.visibility = "hidden"; | |
41 } | |
42 | |
43 hideRegionsAndFlows(); | |
44 </script> | |
45 </body> | |
46 </html> | |
OLD | NEW |