Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Side by Side Diff: LayoutTests/dialog/top-layer-display-none.html

Issue 24493004: Make dialog::backdrop span the viewport by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/dialog/top-layer-containing-block.html ('k') | LayoutTests/dialog/top-layer-nesting.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698