| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>CSS Test: regions as part of the same stacking context as the node</title> |
| <link rel="author" title="Mihai Balan" href="mailto:mibalan@adobe.com"> |
| <link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property"> |
| <link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from"> |
| <meta name="flags" content="ahem"> |
| <meta name="assert" content="Test checks that regions respect stacking and painting rules when |
| both the region and the content nodes are part of the same, non-root stacking context."> |
| <link rel="match" href="reference/regions-stacking-context-003-ref.html"> |
| <style> |
| #content { |
| font-family: Ahem; |
| font-size: 20px; |
| line-height: 1em; |
| color: green; |
| flow-into: flow; |
| } |
| .region { |
| width: 100px; |
| height: 100px; |
| flow-from: flow; |
| } |
| .region p{ |
| height: 50%; |
| background-color: red; |
| } |
| |
| #container { |
| position: relative; |
| opacity: .7; |
| } |
| #container > div { |
| position: absolute; |
| width: 100px; |
| height: 100px; |
| } |
| .left { |
| top: 0; |
| left: 0; |
| background-color: lightgreen; |
| } |
| .center { |
| top: 25px; |
| left: 25px; |
| background-color: lightblue; |
| } |
| .right { |
| top: 50px; |
| left: 50px; |
| background-color: yellow; |
| } |
| </style> |
| </head> |
| <body> |
| <ol> |
| <li>You should see no red.</li> |
| <li>You should see three colored overlapping squares, from back to front: a green square, a blue square and a yellow square.</li> |
| </ol> |
| <div id="container"> |
| <div class="left region"></div> |
| <div class="center"></div> |
| <div class="right"></div> |
| <div id="content"> |
| xxxxx<br> |
| xxxxx<br> |
| xxxxx<br> |
| xxxxx<br> |
| xxxxx |
| </div> |
| </div> |
| </body> |
| </html> |