W3C home > Mailing lists > Public > www-style@w3.org > January 2008

Proposal: text-vertical-position property

From: David Perrell <davidp@hpaa.com>
Date: Wed, 23 Jan 2008 21:36:28 -0800
To: <www-style@w3.org>
Message-ID: <HIEDLECHAFDEPLGKECDDGEKCAAAB.davidp@hpaa.com>

'text-vertical-position'
    Value:          bbox | xheight | capheight | ascdesc | <length>
    Initial:        bbox
    Applies to:     block-level, table-cell, table-caption or inline-block elements
    Inherited:      no
    Percentages:    N/A
    Media:          visual
    Computed value: for <length> the absolute value; otherwise as specified

This property specifies the vertical position of text in line boxes within the element.

Values have the following meanings:

bbox
    Align the midpoint between the top and bottom of the font's bounding box with the vertical midpoint of the line box.

xheight
    Align the vertical midpoint of lower case letters with the vertical midpoint of the line box.

capheight
    Align the vertical midpoint of upper case letters with the vertical midpoint of the line box.

ascdesc
    Align the midpoint between the font's ascender top and descender bottom with the vertical midpoint of the line box.

<length>
    Align a point above the font's baseline (positive values), below the font's baseline (negative values), or the baseline itself (zero), with the vertical midpoint of the line box.

-------------
David Perrell
Received on Thursday, 24 January 2008 05:37:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:59 GMT