Percentual width of absolute element is computed relative to wrong block

A percentual width of an abolutely positioned element should be calculated relative to the containing block (the body, if there is no other absolutely positioned element. Unfortunately Explorer (Win and Mac) and Opera calculate the width relative to a static block that contains the HTML for the absolute element.

Test page Workaround is not included
Reported by: G�rard Talbot.

Explorer 5-6 Windows, Explorer 7, Explorer Mac, Opera | Reported on 30 May 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


(Add your own)

1 Posted by Ingo Chao on 26 June 2005 | Permalink

This bug was filed as a bug at the Opera8beta stage with this test page:

Coincedentially, this was discussed in May 2005 in this cssd-thread here

There is no workaround.

2 Posted by Ingo Chao on 26 June 2005 | Permalink

Sorry, the css-d thread was in March 2005 here

3 Posted by Gérard Talbot on 25 September 2005 | Permalink

I updated the testcase a bit.
I also note that another person has spotted and reported this bug before:

4 Posted by Gérard Talbot on 5 September 2007 | Permalink

This bug has been fixed in Internet Explorer 7 and in Opera 9.