| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
| "http://www.w3.org/TR/html40/strict.dtd"> | |
| <!-- vim:sw=4:et:ts=4 | |
| --> | |
| <html lang="en-US"> | |
| <head> | |
| <title>z-index testcase: canvas background baseline (position: fixed)</title> | |
| <meta http-equiv="Content-Style-Type" content="text/css"> | |
| <link rel="copyright" href="/~dbaron/legal.html"> | |
| <style type="text/css"> | |
| html, body { | |
| width: 100%; | |
| height: 100%; | |
| margin: 0; | |
| padding: 0; | |
| border: none; | |
| } | |
| body { | |
| background: red; | |
| } | |
| div { | |
| background: green; | |
| position: fixed; | |
| z-index: 1; | |
| top: 0; | |
| left: 0; | |
| height: 100%; | |
| width: 100%; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div></div> | |
| </body> | |
| </html> |