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

Re: inline-block baseline when the baseline would be outside of the element

From: Gérard Talbot <www-style@gtalbot.org>
Date: Wed, 10 Jul 2013 16:42:27 -0400
Message-ID: <951075ddf76980d0f17ad6d21bc3f4d2.squirrel@ed-sh-cp3.entirelydigital.com>
To: "Boris Zbarsky" <bzbarsky@MIT.EDU>
Cc: "Christian Biesinger" <cbiesinger@google.com>, "W3C www-style mailing list" <www-style@w3.org>

Le Mer 10 juillet 2013 11:24, Boris Zbarsky a écrit :
> On 7/10/13 11:20 AM, Christian Biesinger wrote:
>> PS: I just realized that in Firefox, if I add overflow: hidden;, then
>> the baseline changes! In other words: the overflow setting affects the
>> positioning of the box. That also seems weird?
>  From http://www.w3.org/TR/CSS21/visudet.html#line-height last paragraph:
>    The baseline of an 'inline-block' is the baseline of its last line
>    box in the normal flow, unless it has either no in-flow line boxes or
>    if its 'overflow' property has a computed value other than 'visible',
>    in which case the baseline is the bottom margin edge.
> The fact that WebKit does not do that is a longstanding issue in WebKit.
> -Boris

Boris, Christian,

I went through all the tests that we have in CSS 2.1 test suite (in §
10.8.1 [1]) on baseline alignment and inline-blocks
a) with no in-flow line boxes or
b) with its overflow set to a value other than visible
and I could not find a single test that WebKit (Chrome 28.0.1500.71) fails.

I am working on new and additional tests right now to better "target" this.




Those are draft for now. These tests' filenames will eventually be
filename-renamed and submitted to CSS 2.1 test suite. So, do not bookmark
them; I will follow-up in this thread with the final filenames when I'm

I'm working on other tests (with overflow hidden).



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, 10 July 2013 20:43:09 UTC

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