Rustam Abdullaev

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromRustam Abdullaev
ToMe
Subjectdiv drop issue in IE8
Date6 September 2008 15:06
Hi,
great resource about IE float issues! I think I may have found another one.
It exists only in IE8. It drops the float when there is an overflow. I made
a simple page to show it:
[URL]

Just thought it might be something for you to add to the list of IE issues.

Thanks,

- Rusty -
FromMe
ToRustam Abdullaev
SubjectRe: div drop issue in IE8
Date6 September 2008 18:41
Rusty,

> It drops the float when there is an overflow. I made a simple page to show
> it:

Nice catch.

What's happening is that the element following the float has overflow, so it
creates a new block formatting context - this means it should appear to the
right of the float, and not be overlapped by it as normal. If the parent is
400px wide, and the float is 200px wide, this means the following element
should be 200px wide. According to the CSS spec, the width of the scrollbar
should be _subtracted_ from the width, so it should be 184px wide, with a
(typically) 16px scrollbar. Instead, IE 8 beta 2 adds the width of the
scrollbar to the width of the element, making it 200px with a 16px
scrollbar. This means its total width is now 216px, and there is no longer
enough space for it to fit beside the float (which is still floating), and
instead it is pushed below it.

I have made a simplified testcase here:
http://www.howtocreate.co.uk/ieBugs/scrollbarwidth.html

Admittedly, they have done quite well with beta 2. Only 4 of the regressions
I had previously listed still exist. However, there is a new one with double
colons in CSS that completely breaks my entire site. Hope they fix that
before final, or people are going to be relying on it for CSS hacks...


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
FromRustam Abdullaev
ToMe
SubjectRe: div drop issue in IE8
Date9 September 2008 12:32
Thanks for the clarification, Tarquin, I appreciate it.I'm gonna hope that
they fix this before releasing the browser. They've done a lot of work on it
already, and this sounds like a small bug... (although with rather
devastating consequences for my site, as I see no workaround without
resorting to javascript)

Thanks again,

- Rustam -
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.