IE 5.5 and 6 set left coordinate relative to wrong block

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:




Search reports by browser:

IE 5.5 and 6 set the left origin of the positioning co-ordinates to the edge of the content of the first element of the containing block, and ignore the edge of the relatively positioned containing block.

Strangely ie behaves correctly if the position is set relative to the right edge. It also behaves correctly if the containing block is positioned absolutely.

Test page Workaround is not included
Reported by: Marc Pacheco.

Explorer 5-6 Windows, Explorer 7 beta 2 | Reported on 5 September 2005.

Comments

(Add your own)

Posted by Ingo Chao on 7 September 2005

1

In IE/Win, to offset a.p. elements, the containing block is established by its nearest positioned ancestor -- which has layout [1].

So position: relative is not enough.

You could use this implicit hack

width: 100%

for the containing block in your test case.


[1] http://www.satzansatz.de/cssd/onhavinglayout.html#cb

Posted by Gérard Talbot on 25 March 2006

2

As far as I can see, this bug is fixed with IE 7 beta 2 build 5335.5 (released on March 20th 2006).

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes