| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 dialog { | 5 dialog { |
| 6 height: 150px; | 6 height: 150px; |
| 7 width: 150px; | 7 width: 150px; |
| 8 } | 8 } |
| 9 | 9 |
| 10 ::backdrop { |
| 11 display: none; |
| 12 } |
| 13 |
| 10 .red { | 14 .red { |
| 11 background-color: red; | 15 background-color: red; |
| 12 top: 200px; | 16 top: 200px; |
| 13 } | 17 } |
| 14 | 18 |
| 15 #bottomDialog { | 19 #bottomDialog { |
| 16 background-color: blue; | 20 background-color: blue; |
| 17 top: 50px; | 21 top: 50px; |
| 18 display: none; | 22 display: none; |
| 19 } | 23 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 44 document.getElementById('container').style.display = 'none'; | 48 document.getElementById('container').style.display = 'none'; |
| 45 document.getElementById('displayNoneChild2').showModal(); | 49 document.getElementById('displayNoneChild2').showModal(); |
| 46 | 50 |
| 47 // Test that stacking works even if an element is added to the top layer when it
has no renderer. | 51 // Test that stacking works even if an element is added to the top layer when it
has no renderer. |
| 48 document.getElementById('bottomDialog').showModal(); | 52 document.getElementById('bottomDialog').showModal(); |
| 49 document.getElementById('topDialog').showModal(); | 53 document.getElementById('topDialog').showModal(); |
| 50 document.getElementById('bottomDialog').style.display = 'block'; | 54 document.getElementById('bottomDialog').style.display = 'block'; |
| 51 </script> | 55 </script> |
| 52 </body> | 56 </body> |
| 53 </html> | 57 </html> |
| OLD | NEW |