OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 .region | |
6 { | |
7 -webkit-flow-from: no_flow; | |
8 } | |
9 </style> | |
10 </head> | |
11 <body> | |
12 <p>Tests that changing the element into a region without an existing flo
w disconnects the element's content.</p> | |
13 <div id="region_without_flow"> | |
14 <div id="region_content">This text should not be visible when the el
ement becomes a region.</div> | |
15 </div> | |
16 <script> | |
17 if (window.testRunner) | |
18 testRunner.dumpAsText(); | |
19 var region = document.getElementById("region_without_flow"); | |
20 // The element is not a region yet, it has content. | |
21 var pass = region.innerText.length != 0; | |
22 // The element becomes a region, its content gets disconnected. | |
23 region.className = "region"; | |
24 pass &= region.innerText.length == 0; | |
25 document.write("<p>" + pass ? "PASS" : "FAIL" + "</p>"); | |
26 </script> | |
27 </body> | |
28 </html> | |
OLD | NEW |