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

Side by Side Diff: LayoutTests/dialog/backdrop-in-flow.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 visibility: hidden;
5 }
6
7 dialog::backdrop {
8 height: 100px;
9 width: 50px;
10 }
11
12 #left::backdrop {
13 position: static;
14 top: 100px;
15 left: 100px;
16 background: green;
17 }
18
19 #right::backdrop {
20 position: relative;
21 background: green;
22 top: 100px;
23 left: 150px;
24 }
25 </style>
26 <body>
27 Test that position 'static' or 'relative' for ::backdrop computes to 'absolute'.
28 The test passes if there is a single green box.
29 <dialog id="left"></dialog>
30 <dialog id="right"></dialog>
31 </div>
32 <script>
33 document.querySelector('#left').showModal();
34 document.querySelector('#right').showModal();
35 </script>
36 </body>
OLDNEW
« no previous file with comments | « LayoutTests/dialog/backdrop-does-not-inherit-expected.html ('k') | LayoutTests/dialog/backdrop-in-flow-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698