inlineblock / baselinePosition
David Hyatt
hyatt at apple.com
Sun Nov 2 21:16:51 CET 2003
The main reason is that inline blocks are potentially supposed to align
along the baseline of the first line box contained inside the inline
block. That's what some members of the CSS WG want to do at any rate,
but they hadn't really reached a consensus yet. I even wrote the
methods to find the baseline of the first line box, etc., but ended up
not using them yet, since I'm still waiting to find out what the
decision is.
dave
On Nov 2, 2003, at 7:00 AM, Dirk Mueller wrote:
>
> Hi,
>
> RenderBlock::baselinePosition:
>
> // Inline blocks are replaced elements. Otherwise, just pass off to
> // the base class. If we're being queried as though we're the
> root line
> // box, then the fact that we're an inline-block is irrelevant,
> and we
> behave
> // just like a block.
> if (isReplaced() && !isRootLineBox)
> return height()+marginTop()+marginBottom();
>
> IMHO, this has to be merged with RenderReplaced::baselinePosition(),
> and
> therefore should end up in the common baseclass, RenderBox.
>
> what is the reason you didn't do that?
>
>
> --
>> Looking for a KDE-related EMail-Alias ? Get one at kdemail.net for
>> FREE! <
> _______________________________________________
> Khtml-devel at kde.org
> https://mail.kde.org/mailman/listinfo/khtml-devel
More information about the Khtml-devel
mailing list