- From: Ben Cotterell <ben.cotterell@antplc.com>
- Date: Thu, 11 Sep 2008 22:18:30 +0100
- To: "L. David Baron" <dbaron@dbaron.org>
- CC: www-style@w3.org
On Thu, Sep 11, 2008 at 11:13:05AM -0700, L. David Baron wrote: > On Thursday 2008-09-11 18:19 +0100, Ben Cotterell wrote: > > On Thu, Sep 11, 2008 at 09:47:32AM -0700, L. David Baron wrote: > > > On Thursday 2008-09-11 17:33 +0100, Ben Cotterell wrote: > > > > Then the text "FAIL" goes in, to the right of the first float. Only 1px > > > > of the div's background is visible above the second float, so most of > > > > the text ends up occupying the same position on the page as the second > > > > float. > > > > > > Which is the bug that this test is testing, I believe. > > > > > > This is a bug in Mozilla: > > > https://bugzilla.mozilla.org/show_bug.cgi?id=25888 > > > and it causes overlap on real pages. > > > > OK, but is this in the CSS 2.1 specification anywhere? > > > > 9.4.2 explains that line boxes get narrower when there are floats to the > > sides, but there's nothing I can see that says anything like "Line boxes > > ...which is exactly the behavior that's being tested here. They get > narrower when there are floats at their sides. The floats can be > anywhere on their side, not just at the very top of their sides. Ah, now I get it! Thanks. I don't think the test is wrong any more. Still it is very unusual. Nowhere else do you have to take into account what something's height is going to be when working out its available width.
Received on Thursday, 11 September 2008 21:22:18 UTC