W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [css3-align] Some questions about justify-self

From: Christian Biesinger <cbiesinger@chromium.org>
Date: Fri, 22 Mar 2013 14:33:09 -0700
Message-ID: <CAPTJ0XEibYr+xzqNocpGTV1OurxDL69Hz=LMurS1Sdgtgg-Hog@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>, Ojan Vafai <ojan@chromium.org>
On Wed, Mar 20, 2013 at 4:24 PM, Christian Biesinger
<cbiesinger@chromium.org> wrote:
> On Wed, Mar 20, 2013 at 4:03 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> On Wed, Mar 20, 2013 at 1:08 PM, Christian Biesinger
>> <cbiesinger@chromium.org> wrote:
>>> On Wed, Mar 20, 2013 at 11:50 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>>>> On Wed, Mar 20, 2013 at 11:30 AM, Christian Biesinger
>>>> <cbiesinger@chromium.org> wrote:
>>>>> SECTION 3.1 (justify-self)
>>>>> - The spec defines a "baseline" value for justify-self. It is not
>>>>> clear to me what that means? Is this just for vertical writing modes,
>>>>> or am I missing something?
>>>> Basically, yes.  Every box is supposed to generate both a horizontal
>>>> and vertical baseline, so that it can be baseline-aligned regardless
>>>> of the surrounding writing-mode.
>>> Ah. OK, that makes sense. Looking at the code, that shouldn't be too
>>> hard to implement, I think.
>> For guidance, check out the Flexbox Baselines section
>> <http://dev.w3.org/csswg/css3-flexbox/#flex-baselines>, which is very
>> precise and explains how to handle cases when there's no appropriate
>> baseline in a particular direction.
> Does this mean that the synthesized baseline may have to be used also
> for justify-content: baseline?
> Just to make sure I understand this correctly - in this case:
> http://plexode.com/eval3/#s=aekVQXANJVQMbAx1yAXgePQMOWEZDTEpVDktWVFVKR1oORFBPVUauGwFDQlRGTUpPRhyaHz1PvwEBlZeZm52foZxToblIDk5QRUayV0ZTp0RCTQ5NUxwBiw6IslG5TL0nSlOmw1RWQx8lSlcdEO/x9nK+T8LETCaTieUCiLDMU5PZ7RabVa7Zbbdb7hcayXBISBIKZGLTgRIORSyCYRKJZXo0IysJ5FALzeoQfa/X76D4DLwA
> "First" and "Second" should be aligned, right?

Upon re-reading the baseline paragraph, I noticed that it only applies
to table cells (and grid and flex).

Is that a useful constraint? I was originally thinking that this was
basically for equivalence with vertical-align:baseline, but that would
only make sense for align-content:baseline, not for

So I'm thinking it would make more sense to either not apply
j-c:baseline to block containers, or to support it for all block
containers. Thoughts?

Received on Friday, 22 March 2013 21:33:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:09 UTC