Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 */ | |
|
esprehn
2013/07/03 23:44:29
Seriously? Crazytown.
| |
| 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> | |
| OLD | NEW |