W3C home > Mailing lists > Public > www-style@w3.org > February 2002

Re: baseline of inline element

From: Srinivasan Raman <Srinivasan.Raman@oracle.com>
Date: Wed, 13 Feb 2002 13:41:16 -0500 (EST)
Message-ID: <3C6A9705.9BCAEDD9@oracle.com>
To: Ian Hickson <ian@hixie.ch>
CC: www-style@w3.org
I think, I wanted to find out the distance from the top of a inline box
(or block box) to its baseline. 

>From CSS2 spec section 12.6.1 (markers)

"For the :before pseudo-element, the baseline of text in the marker
box will be vertically aligned with the baseline of text in the first
line of content in the principal box."

In order vertically align the marker and principal box along
its baseline, I am trying to find the distance from the top of
the box to its baseline.



Ian Hickson wrote:
> Srinivasan Raman wrote:
> > I am trying to figure out how to calculate the baseline of a inline
> > element (or the box generated for that inline element).
> >
> > Assuming the inline element has a text children.
> >
> > Would this be correct
> >
> > Baseline of inline box = (inline_top_margin + inline_top_border +
> >                           inline_top_padding + text_baseline)
> I don't exactly understand your question, but it definitely has nothing to do
> with padding, margins or borders... see:
>     http://www.people.fas.harvard.edu/~dbaron/css/2000/01/dibm
> --
> Ian Hickson
> ``The inability of a user agent to implement part of this specification due to
> the limitations of a particular device (e.g., non interactive user agents will
> probably not implement dynamic pseudo-classes because they make no sense
> without interactivity) does not imply non-conformance.'' -- Selectors, Sec13
Received on Thursday, 14 February 2002 04:17:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:00 UTC