OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <style> | |
4 #content { | |
5 width: 20px; | |
6 height: 20px; | |
7 background-color: green; | |
8 position: relative; | |
9 display: block; | |
10 margin: 10px; | |
11 -webkit-flow-into: first; | |
12 } | |
13 #region1 { | |
14 height: 80px; | |
15 background-color: orange; | |
16 border-style: solid; | |
17 border-width: thin; | |
18 -webkit-flow-from: first; | |
19 -webkit-flow-into: second; | |
20 } | |
21 #region2 { | |
22 width: 100px; | |
23 height: 100px; | |
24 background-color: gray; | |
25 border-style: solid; | |
26 border-width: thin; | |
27 -webkit-flow-from: second; | |
28 } | |
29 .red { | |
30 width: 100%; | |
31 height: 100%; | |
32 background-color: red; | |
33 } | |
34 </style> | |
35 </head> | |
36 <body> | |
37 <p> | |
38 The green box is a dialog element that is flowed into a nested named
flow. | |
39 </p> | |
40 <ol> | |
41 <li>Test passes if you see a green square inside an orange square in
side a gray square.</li> | |
42 <li>You shouldn't see any red.</li> | |
43 </ol> | |
44 <dialog id="content"></dialog> | |
45 <div id="region1"> | |
46 <div class="red"></div> | |
47 </div> | |
48 <div id="region2"> | |
49 <div class="red"></div> | |
50 </div> | |
51 </body> | |
52 <script> | |
53 document.addEventListener("DOMContentLoaded", function() { | |
54 var dialog = document.getElementsByTagName('dialog')[0]; | |
55 dialog.show(); | |
56 }); | |
57 </script> | |
58 </html> | |
OLD | NEW |