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

Side by Side Diff: third_party/WebKit/LayoutTests/html/dialog/backdrop-does-not-inherit.html

Issue 2671603003: Move DIALOG element tests to html/dialog/. (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 dialog { 3 dialog {
4 visibility: inherit; 4 visibility: inherit;
5 background: red; 5 background: red;
6 } 6 }
7 7
8 dialog::backdrop { 8 dialog::backdrop {
9 position: absolute; 9 position: absolute;
10 top: 100px; 10 top: 100px;
11 left: 100px; 11 left: 100px;
12 height: 100px; 12 height: 100px;
13 width: 100px; 13 width: 100px;
14 visibility: inherit; 14 visibility: inherit;
15 background: green; 15 background: green;
16 } 16 }
17 </style> 17 </style>
18 <body> 18 <body>
19 Test that ::backdrop does not inherit from anything. The test passes if there is 19 Test that ::backdrop does not inherit from anything. The test passes if there is
20 a green box and no red. 20 a green box and no red.
21 <div style="visibility: hidden"> 21 <div style="visibility: hidden">
22 <dialog></dialog> 22 <dialog></dialog>
23 </div> 23 </div>
24 <script> 24 <script>
25 document.querySelector('dialog').showModal(); 25 document.querySelector('dialog').showModal();
26 </script> 26 </script>
27 </body> 27 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698