Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / regions / auto-size / autoheight-region-remove-maxheight.html
1 <!doctype html>
2 <html>
3     <head>
4         <style>
5             #content { -webkit-flow-into: flow; font: 50px/1 Ahem; }
6             #region { -webkit-flow-from: flow; width: 100px; position: absolute; top: 200px; }
7             .regionMaxHeight { max-height: 200px; }
8         </style>
9     </head>
10     <script src="../../../resources/check-layout.js"></script>
11     <body onload="checkLayout('#region')">
12         <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=103738"> [CSS Regions] min-max height will not trigger a relayout when set on a region with auto-height</a>.</p>
13         <p>On success you should see PASS below.</p>
14         <div id="content">
15             <span>a a a a a</span>
16         </div>
17         <div id="region" class="regionMaxHeight" data-expected-height=250></div>
18         <script>
19             document.body.offsetTop; // force layout
20             document.getElementById("region").className = "";
21         </script>
22     </body>
23 </html>