| <html> |
| <head> |
| <title>Test for https://bugs.webkit.org/show_bug.cgi?id=78787</title> |
| <script> |
| if (window.testRunner) |
| window.testRunner.overridePreference("WebKitCSSRegionsEnabled", "1"); |
| </script> |
| <style type="text/css"> |
| #content { |
| -webkit-flow-into: flow1; |
| } |
| |
| #target { height: 100px; background-color: red } |
| |
| #region1, #region2 { |
| -webkit-flow-from: flow1; |
| } |
| |
| #region1 { |
| width: 300px; |
| height: 150px; |
| border:1px solid black; |
| background-color:red; |
| } |
| |
| #region2 { |
| width: 300px; |
| height: 200px; |
| border:1px solid black; |
| background-color:red; |
| } |
| |
| </style> |
| <script src="resources/repaint.js" type="text/javascript"></script> |
| <script> |
| function repaintTest() |
| { |
| document.getElementById('target').style.height = '350px'; |
| document.getElementById('target').style.backgroundColor = 'green'; |
| } |
| </script> |
| </head> |
| <body onload="runRepaintTest();"> |
| <div id="content"> |
| <div id="target"></div> |
| </div> |
| |
| <div id="region1"></div><br/> |
| <div id="region2"></div> |
| </body> |
| </html> |