| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
| |
| <style> |
| div.content { |
| -webkit-flow-into: flow; |
| } |
| p, body { |
| margin: 0; |
| } |
| #region { |
| -webkit-flow-from: flow; |
| background-color: lightgray; |
| position: relative; |
| width: 400px; |
| height: 200px; |
| } |
| </style> |
| </head> |
| <body onload="runRepaintTest();"> |
| <div id="box"></div> |
| <div class="content"> |
| <p>This text should not get clipped</p> |
| </div> |
| |
| <div id="region"></div> |
| |
| <script type="text/javascript"> |
| function repaintTest() |
| { |
| var box = document.getElementById("box"); |
| box.style.height = "50px"; |
| } |
| </script> |
| </body> |
| </html> |