| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <link rel="stylesheet" href="resources/dialog.css"> |
| 4 <style> | 5 <style> |
| 5 .pseudodialog { | 6 .pseudodialog { |
| 6 height: 150px; | 7 height: 150px; |
| 7 width: 150px; | 8 width: 150px; |
| 8 position: absolute; | |
| 9 left: 0; right: 0; | |
| 10 margin: auto; | |
| 11 border: solid; | |
| 12 padding: 1em; | |
| 13 background: white; | |
| 14 color: black; | |
| 15 } | 9 } |
| 16 </style> | 10 </style> |
| 17 </head> | 11 </head> |
| 18 <body> | 12 <body> |
| 19 This tests that a top layer element is not rendered if it, or an ancestor, has d
isplay: none. | 13 This tests that a top layer element is not rendered if it, or an ancestor, has d
isplay: none. |
| 20 It passes if you see a green rectangle stacked on top of a blue rectangle, and s
ee no red rectangles. | 14 It passes if you see a green rectangle stacked on top of a blue rectangle, and s
ee no red rectangles. |
| 21 | 15 |
| 22 <div class="pseudodialog" style="top: 50px; background-color: blue"></div> | 16 <div class="pseudodialog" style="top: 50px; background-color: blue"></div> |
| 23 <div class="pseudodialog" style="top: 100px; left: 50px; background-color: green
"></div> | 17 <div class="pseudodialog" style="top: 100px; left: 50px; background-color: green
"></div> |
| 24 </body> | 18 </body> |
| 25 </html> | 19 </html> |
| OLD | NEW |