Setting position: relative on html and body in strict mode

In Internet Explorer 6.0 and higher, setting html, body {position: relative;} while in strict mode causes the browser to disallow scrolling. I don't know of any real-world applications where this would be a problem, but it's still a bug.

In Safari the entire body disappears if you set position: relative on the HTML first, and then on the BODY. Safari crashes if you check BODY, then HTML, then uncheck BODY.

Workarounds include using quirks mode, or playing it safe and avoiding setting positioning to the html element.

Test page Workaround is included
Reported by: John Hansen.

(Orphaned), Explorer 5-6 Windows, Safari | Reported on 20 July 2005.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.




Search reports by browser:

Atom RSS

Comments

(Add your own)

1 Posted by Ingo Chao on 30 July 2005 | Permalink

Another workaround would let the content gain layout:

p {zoom:1} in your example,
or more general,
.pagewrapper {zoom:1}.