Re: [CSS21] vertical-align

Andrew Fedoniouk wrote:
> 
> Reading[1]...
> 
> First question about vertical-align: baseline and elements that are 
> display:inline-block.
> 
> Does for example <span style="display:inline-block">Text1<br/>Text2</span>
> have a baseline? If it does I would like to know what is an exact value of
> baseline shift for such an inline block.

See the last sentence in
   http://www.w3.org/TR/CSS21/visudet.html

> "Note. Values of this property have slightly different meanings
> in the context of tables. Please consult the
> section on table height algorithms for details."
> 
> I believe that "slightly different" is, well, slightly not the case.
> 
> There are two distinct meaning of vertical-alignment  here.
> First: vertical-alignment is an alignment of block itself in its parent
> context and second (table cells) is an instruction for a *container*
> of how to position its children.  These two are conceptually different
> cases so I propose to remove that "slightly" from the note.

Recorded as issue 9:
   http://csswg.inkedblade.net/spec/css2.1#issue-9

~fantasai

Received on Thursday, 11 October 2007 16:24:53 UTC