W3C home > Mailing lists > Public > www-style@w3.org > November 2015

Re: [css-logical-properties] the 'inline-{start,end}' values for 'float' and 'clear'

From: Brad Kemper <brad.kemper@gmail.com>
Date: Fri, 6 Nov 2015 09:13:52 -0800
Cc: www-style list <www-style@w3.org>, Koji Ishii <kojiishi@gmail.com>, fantasai <fantasai.lists@inkedblade.net>, Rossen Atanassov <ratan@microsoft.com>, Jonathan Kew <jfkthame@gmail.com>, Florian Rivoal <florian@rivoal.net>, "Elika J. Etemad" <fantasai@inkedblade.net>, "Tab Atkins Jr." <jackalmage@gmail.com>
Message-Id: <1C48EF9E-BDE3-4A66-B5CC-BD7968FA7A5A@gmail.com>
To: Johannes Wilm <johannes@fiduswriter.org>


> On Nov 6, 2015, at 8:26 AM, Johannes Wilm <johannes@fiduswriter.org> wrote:
> 
> Ok, maybe I misunderstood. So "float: none top" will behave the same as "float: left top"? And "float: none bottom" will behave the same as "float: right bottom"?
> 
I really feel that you only read the bottom half of my earlier email. I explained all this in detail, including those two specifically in the very first part, and reading it is almost certainly going to be faster than how long it took me to type it on my phone. 

The short answer is that "float: none top" means you are moving it to the top line and blockifying it, but not floating to the left or right. So the text (and other floats) starts under it. "float: left top" means you are also floating to the left. So the text (and other floats) starts to the right of it. 
> If they are the same, then why do we have the "none" at all?
> 
They are not the same. The first value of 'none' or 'left' are not the same for existing 'float: left' or 'float: right'. I'm not changing that. The blockifying already happens with that, along with shrink-to-fit width. 

For 'float: none top', I'm keeping the blockification, but not the shrink-to-fit width. shrink-to-fit width would only be for left/right values other than none. 

If you have 'width:100%; box-sizing: border-box;' they would look about the same, aside from maybe how vertical margins collapse or something. 
Received on Friday, 6 November 2015 17:14:24 UTC

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