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

Side by Side Diff: third_party/WebKit/LayoutTests/dialog/backdrop-dynamic-style-change.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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 dialog {
6 visibility: hidden;
7 }
8
9 ::backdrop {
10 position: absolute;
11 top: 100px;
12 left: 100px;
13 height: 100px;
14 width: 100px;
15 background-color: red;
16 }
17
18 .green::backdrop {
19 background-color: green;
20 }
21 </style>
22 </head>
23 <body>
24 Test dynamic changes to ::backdrop style. The test passes if there is a green bo x below.
25 <dialog></dialog>
26 <script>
27 dialog = document.querySelector('dialog');
28 dialog.showModal();
29 dialog.classList.add('green');
30 </script>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698