IE/Win Calculated Offset Bug

Under review and testing, 6 Jun 2008

If an absolutly postioned element follows a inline element or float in the source IE/Win incorrectly offset the absolutly postioned element. The type of source is common in dropdown menus.

According to CSS2.1 9.4.1 Block formatting contexts

The markup will be similar to below.


<div class="container"> <!-- Floated element with hatched background -->

	<div class="float-left">Element with transparent blue background</div>
	<div class="absolute">Absolutely Positioned Element</div>
</div>

Unexpected
Floated Element
a.p.
Floated Element
a.p. left: auto;
Floated Element
a.p. left: 0;
Floated Element
a.p. top: auto;
Floated Element
a.p. top: 0;
  1. Inline element followed by absolutely positioned element in the source
  2. Floated element followed by absolutely positioned element in the source