| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>CSS Regions Test: flowing content in a modal dialog</title> |
| <link rel="author" title="Catalin Badea" href="mailto:badea@adobe.com"> |
| <link rel="reviewer" 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="dom"> |
| <meta name="assert" content="Test checks that content is correctly flowed into modal dialog elements."> |
| <link rel="match" href="reference/regions-modal-dialog-001-ref.html"> |
| <style> |
| #content { |
| width: 100px; |
| height: 100px; |
| background-color: green; |
| flow-into: f; |
| } |
| #region { |
| width: 100px; |
| height: 100px; |
| background-color: gray; |
| flow-from: f; |
| } |
| .red { |
| width: 100px; |
| height: 100px; |
| background-color: red; |
| } |
| </style> |
| </head> |
| <body> |
| <ol> |
| <li>Test passes if you see a green square in the gray box.</li> |
| <li>You should see no red.</li> |
| </ol> |
| <div id="content"></div> |
| <dialog id="region"> |
| <div class="red"></div> |
| </dialog> |
| </body> |
| <script> |
| document.addEventListener("DOMContentLoaded", function() { |
| var dialog = document.getElementsByTagName('dialog')[0]; |
| dialog.showModal(); |
| }); |
| </script> |
| </html> |