W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [CSS21] Nested floats and zero-height margin box

From: Gérard Talbot <www-style@gtalbot.org>
Date: Tue, 21 Feb 2012 22:25:23 -0500
Message-ID: <40c56be424e6912cfbb7c090d102bf23.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Øyvind Stenhaug" <oyvinds@opera.com>
Cc: "W3C www-style mailing list" <www-style@w3.org>

Le Mar 21 février 2012 12:45, Øyvind Stenhaug a écrit :
> On Sat, 18 Feb 2012 04:11:10 +0100, Gérard Talbot <www-style@gtalbot.org>
> wrote:
>> Le Ven 17 février 2012 14:56, "Gérard Talbot" a écrit :
>>> Hello,
>>> I am working on the following tests:
>>> http://www.gtalbot.org/BrowserBugsSection/css21testsuite/float-non-replaced-width-013.html
>>> http://www.gtalbot.org/BrowserBugsSection/css21testsuite/float-non-replaced-width-014.html
>>> http://www.gtalbot.org/BrowserBugsSection/css21testsuite/float-non-replaced-width-015.html
>>> http://www.gtalbot.org/BrowserBugsSection/css21testsuite/float-non-replaced-width-016.html
>>> 1- Are those tests correct? If no, please explain a bit, preferably by
>>> quoting the relevant chunks of the spec.
>> A float establishes a new block formatting context for its children (as
>> stated in section 9.4.1). And the right outer edge of a left-floating
>> box
>> may not be to the right of the left outer edge of any right-floating box
>> that is next to it. Analogous rules hold for right-floating elements.
>> So, the parent float should be as wide as the sum of the width of its
>> children.
>> Consider this issue as SOLVED
> I don't think the spec covers these adequately.
> First of all, the outermost floats here are all auto-width, in which case
> "CSS 2.1 does not define the exact algorithm" for finding preferred width
> and preferred minimum width.
> Second of all, what does it mean for a right-floating box to be "next to"
> a left-floating box? This doesn't seem to be properly defined. Perhaps it
> should be similar to the case of lineboxes "next to" floats, where floats
> with zero outer height are not supposed to shorten lineboxes. Then, for
> e.g. float-non-replaced-width-013 it would be perfectly fine to put
> #floated-left-child in the top left and #floated-right-child "below" it -
> #floated-right-child would still be "as high as possible".
> --
> Øyvind Stenhaug
> Core Norway, Opera Software ASA

I removed the 4 tests from the test suite (from my submitted folder) until
the spec "establishes" exactly the issue with those tests; they are now in
my /incoming folder.

changeset 2757:9f4e2c20fd60

changeset 2758:efa7989c291a

CSS 2.1 Test suite RC6, March 23rd 2011

Contributions to CSS 2.1 test suite

Web authors' contributions to CSS 2.1 test suite
Received on Wednesday, 22 February 2012 03:25:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:12 UTC