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

Side by Side Diff: LayoutTests/fast/dom/HTMLDialogElement/modal-dialog-blocks-mouse-events.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, 2 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 #inert-div { 5 #inert-div {
6 height: 100px; 6 height: 100px;
7 width: 100px; 7 width: 100px;
8 background: blue; 8 background: blue;
9 } 9 }
10 10
11 dialog { 11 dialog {
12 width: 100px; 12 width: 100px;
13 } 13 }
14 14
15 dialog::backdrop {
16 display: none;
17 }
18
15 #dialog-div { 19 #dialog-div {
16 height: 100px; 20 height: 100px;
17 width: 100px; 21 width: 100px;
18 background: red; 22 background: red;
19 } 23 }
20 </style> 24 </style>
21 <script src="../../js/resources/js-test-pre.js"></script> 25 <script src="../../js/resources/js-test-pre.js"></script>
22 </head> 26 </head>
23 <body> 27 <body>
24 <div id="inert-div"></div> 28 <div id="inert-div"></div>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 shouldBe('Object.keys(body.firedOnEvents).length', 'events.length'); 97 shouldBe('Object.keys(body.firedOnEvents).length', 'events.length');
94 98
95 debug('Clicking on non-inert box'); 99 debug('Clicking on non-inert box');
96 clickOn(dialogDiv); 100 clickOn(dialogDiv);
97 shouldBeFalse('inertDiv.firedOn'); 101 shouldBeFalse('inertDiv.firedOn');
98 shouldBe('Object.keys(dialogDiv.firedOnEvents).length', 'events.length'); 102 shouldBe('Object.keys(dialogDiv.firedOnEvents).length', 'events.length');
99 </script> 103 </script>
100 <script src="../../js/resources/js-test-post.js"></script> 104 <script src="../../js/resources/js-test-post.js"></script>
101 </body> 105 </body>
102 </html> 106 </html>
OLDNEW
« no previous file with comments | « LayoutTests/dialog/top-layer-stacking-dynamic.html ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698