W3C home > Mailing lists > Public > www-style@w3.org > May 2014

Re: [css3-box] Float start/end issue

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 30 May 2014 10:54:20 -0700
Message-ID: <CAAWBYDBXgsioqBZEwSmdMfyMKJDtZa4UYaxy5=HjLM1EQCAyUA@mail.gmail.com>
To: Salar Khalilzadeh <salar2k@gmail.com>
Cc: www-style list <www-style@w3.org>
[please don't top post http://wiki.csswg.org/tools/www-style ]

On Fri, May 30, 2014 at 8:13 AM, Salar Khalilzadeh <salar2k@gmail.com> wrote:
> On Wed, May 28, 2014 at 8:11 PM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
>> On the other hand, that means you can't set "float: start;" on a bunch
>> of elements in some container and expect them to float to the same
>> side.
>>
>> We've addressed this in the Alignment module by having start/end base
>> themselves off the container's direction, and having separate
>> self-start/self-end values that base themselves on the item's
>> direction.
>
> Thanks for the info, I wasn't aware of that module.
> But now after reading that module I'm confused! Wasn't
> justify-self/align-content/... only for flex!

Originally, yes, but it was extended to Grid Layout, and the Alignment
spec extends it to all the other block-level display types.

> Doesn't this mean we will have two approach for a same issue? (or I haven't
> read enough?)
> e.g.:  float:right; justify-self:right;

Nope, floating is a totally different thing.  The align/justify
properties just align children to one side or the other; floating has
lots of additional rules about allowing the other contents to flow
around them, etc.

~TJ
Received on Friday, 30 May 2014 17:55:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:27 UTC