OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script src="../../../resources/js-test.js"></script> | |
4 <style> | |
5 #content { | |
6 -webkit-flow-into: article; | |
7 letter-spacing: -1px; | |
8 direction: rtl; | |
9 } | |
10 #region_1, #region_2{ | |
11 -webkit-flow-from: article; | |
12 overset:visible; | |
13 display:inline-block; | |
14 vertical-align:top; | |
15 margin:10px; | |
16 } | |
17 | |
18 #region_1 { height:110px; width:200px; } | |
19 #region_2 { height:110px; width:200px; } | |
20 | |
21 </style> | |
22 </head> | |
23 <body> | |
24 <h1 id="content">Lorem ipsum</h1> | |
25 <div id="region_1"></div> | |
26 <div id="region_2"></div> | |
27 | |
28 <script> | |
29 description("Tests Element.webkitRegionOverset attribute") | |
30 if (window.testRunner) { | |
31 testRunner.dumpAsText(); | |
32 } | |
33 var region_1 = document.getElementById("region_1"); | |
34 var region_2 = document.getElementById("region_2"); | |
35 var content = document.getElementById("content"); | |
36 shouldBeEqualToString("region_1.webkitRegionOverset", "fit"); | |
37 shouldBeEqualToString("region_2.webkitRegionOverset", "empty"); | |
38 document.body.removeChild(region_1); | |
39 document.body.removeChild(region_2); | |
40 document.body.removeChild(content); | |
41 | |
42 </script> | |
43 </body> | |
44 </html> | |
OLD | NEW |