| <html> |
| <head> |
| <title>Test - Bug #124042: [CSS Regions] Fix positioning composited layers when the region has overflow:hidden</title> |
| <style> |
| html { |
| -webkit-font-smoothing: none; |
| font-size: 16px; |
| } |
| .content { |
| -webkit-flow-into: theFlow; |
| } |
| .transformed { |
| -webkit-transform: translateZ(1px); |
| overflow: hidden; |
| } |
| .transformedChild { |
| -webkit-transform: rotateY(180deg); |
| } |
| .region { |
| -webkit-flow-from: theFlow; |
| width: 600px; |
| height: 150px; |
| overflow: hidden; |
| box-shadow: 0px 0px 0px 10px Green; |
| } |
| .region, .content { |
| border: solid 5px #888; |
| padding: 5px 10px 15px 20px; |
| margin: 10px 15px 20px 25px; |
| } |
| </style> |
| </head> |
| <body> |
| <span class="content">some text 1.</span> |
| <div class="content transformed"> |
| <div>composited</div> |
| <div class="transformedChild">transformed child</div> |
| </div> |
| <span class="content">some text 2.</span> |
| |
| <div class="region"></div> |
| |
| <p>Test passes if the composited layers are positioned at the same place (in the region with overflow:hidden) as in the region that doesn't have overflow:hidden .</p> |
| </body> |
| </html> |