| <!DOCTYPE html> |
| <html> |
| <title>Test that parent mask does not affect top layer elements</title> |
| <meta charset="utf-8"> |
| <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m"> |
| <link rel="match" href="green-dialog-and-backdrop.html"> |
| <link rel="help" href="https://fullscreen.spec.whatwg.org/#new-stacking-layer"> |
| <style> |
| body { background: red; } |
| |
| #parent { |
| mask-image: radial-gradient(black, transparent); |
| mask-size: 100px; |
| } |
| |
| dialog::backdrop, |
| dialog { |
| background: green; |
| } |
| </style> |
| <body> |
| <div id="parent"> |
| <dialog>PASS if no red shows</dialog> |
| </div> |
| <script> |
| document.querySelector("dialog").showModal(); |
| </script> |
| </body> |
| </html> |