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

Side by Side Diff: LayoutTests/dialog/modal-dialog-backdrop.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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 dialog {
4 top: 100px;
5 height: 100px;
6 width: 100px;
7 background: green;
8 }
9
10 /* The default CSS style from the spec gives a background color but no dimension s,
11 * so the backdrop has zero size by default.
12 * http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#re ndering
13 */
14 dialog::backdrop {
15 position: fixed;
16 top: 0;
17 left: 0;
18 right: 0;
19 bottom: 0;
20 }
21 </style>
22 <body>
23 Test for the default user agent style of dialog::backdrop. The test passes if
24 there is a green box, above a very lightly translucent gray box spanning the
25 viewport.
26 <dialog></dialog>
27 <script>
28 document.querySelector('dialog').showModal();
29 </script>
30 </body>
OLDNEW
« no previous file with comments | « LayoutTests/dialog/dialogs-with-no-backdrop-expected.html ('k') | LayoutTests/dialog/modal-dialog-backdrop-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698