<!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: background covering area of canvas still on root (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: green; } div { position: fixed; z-index: -1; background: red; top: 0; left: 0; height: 100%; width: 100%; } </style> </head> <body> <div></div> </body> </html>