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

Re: [css-align] in which cases does 'left'/'right' compute to 'start' exactly?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 3 Dec 2015 15:20:54 -0800
Message-ID: <CAAWBYDChtRLn0toRkpCKvUn4O3T9M2FCQ0Pi1+V+GFHVLp22dw@mail.gmail.com>
To: Mats Palmgren <mats@mozilla.com>
Cc: www-style list <www-style@w3.org>
On Wed, Oct 14, 2015 at 12:41 PM, Mats Palmgren <mats@mozilla.com> wrote:
> One more question on the mapping of 'left'/'right' to 'start':
> <div style="display:grid; justify-items:legacy left">
> <x style="display:flex; ..."></x>
> </div>
>
> Let's say "..." changes the flex direction as you say such that
> the justify-* properties applies to the block direction.
> What would the justify-items value be on <x>?
>
> We can't map 'legacy left' to 'legacy start' because that's not
> a valid value.  Should we map it to 'start'?  Or does the rules
> on mapping 'left'/'right' not apply at all to 'legacy left' in
> which case the value on <x> will simply be 'legacy left'?
>
> <x>'s 'justify-self' on the other hand "inherits" the value without
> the 'legacy' part, so I assume we should map that 'left' to 'start'.
> Correct?

This is moot now, since we adopted the changes dbaron was asking for
and made left/right only *behave as* start when they're used in the
wrong axis.  It no longer has special computed-time behavior.

~TJ
Received on Thursday, 3 December 2015 23:21:43 UTC

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