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

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

From: Christian Biesinger <cbiesinger@google.com>
Date: Thu, 1 Aug 2013 13:50:10 -0400
Message-ID: <CAPTJ0XEZWOuN35JkjEgmZPKSJydbZVSn529n5TSdfMW=M=XSbA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style list <www-style@w3.org>
On Wed, Jul 10, 2013 at 11:24 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> 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.

You might be happy to hear that this is now fixed on Blink trunk
(though not Webkit).
https://codereview.chromium.org/21414002/

-christian
Received on Thursday, 1 August 2013 17:50:36 UTC

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