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

Side by Side Diff: LayoutTests/dialog/modal-dialog-generated-content-expected.html

Issue 17654008: Implement the ::backdrop pseudo-element for modal <dialog>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use element directly Created 7 years, 5 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
« no previous file with comments | « LayoutTests/dialog/modal-dialog-generated-content.html ('k') | Source/core/css/CSSSelector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #dialog {
4 position: absolute;
5 top: 100px;
6 left: 100px;
7 height: 100px;
8 width: 100px;
9 background: green;
10 }
11
12 #dialog-before {
13 position: absolute;
14 top: 0px;
15 }
16
17 #dialog-after {
18 position: absolute;
19 bottom: 0px;
20 }
21
22 #dialog-backdrop {
23 position: absolute;
24 top: 100px;
25 left: 300px;
26 height: 100px;
27 width: 100px;
28 background: green;
29 }
30 </style>
31 <body>
32 Test for a modal dialog with ::before, ::after, and ::backdrop. The test passes
33 if there are two green boxes, one with the texts "::before" and "::after" in it.
34 <div id="dialog">
35 <div id="dialog-before">::before</div>
36 <div id="dialog-after">::after</div>
37 </div>
38 <div id="dialog-backdrop"></div>
39 <script>
40 document.querySelector('dialog').showModal();
41 </script>
42 </body>
OLDNEW
« no previous file with comments | « LayoutTests/dialog/modal-dialog-generated-content.html ('k') | Source/core/css/CSSSelector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698