modal-dialog-backdrop-opacity-ref.html (413B)
1 <!DOCTYPE html> 2 <html> 3 <meta charset="utf-8"> 4 <link rel="stylesheet" href="resources/dialog.css"> 5 <style> 6 .backdrop { 7 display: block; 8 position: fixed; 9 top: 0; 10 left: 0; 11 right: 0; 12 bottom: 0; 13 14 background-color: green; 15 opacity: 0.5; 16 } 17 </style> 18 <body> 19 <div class="backdrop"></div> 20 <div class="pseudodialog">Test passes if you see a green backdrop at half opacity.</div> 21 </body> 22 </html>