dominant-baseline property

Sets or retrieves a value that determines or redetermines a scaled-baseline table.

Scalable Vector Graphics: Text, Section 10.9.2Internet Explorer 9

Syntax

dominant-baseline: auto | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge | inherit

Property values

auto

Default. If this property occurs on a text element, sBaselineTable indicates that the computed value depends on the value of the writingMode property. (If the writingMode is horizontal, the value of the dominant baseline component is alphabetic. Otherwise, if the writingMode is vertical, the value of the dominant baseline component is central.) If this property occurs on a tSpan or textPath element, sBaselineTable indicates that the dominant baseline and the baseline table components remain the same as those of the parent text content element. (If the computed baselineShift value actually shifts the baseline, the baseline table font-size component is set to the value of the fontSize property on the element on which the dominantBaseline property occurs. Otherwise, the baseline table font-size remains the same as that of the element. If there is no parent text content element, the scaled-baseline table value is constructed as shown previously for text elements.)

use-script

The dominant baseline and the baseline table components are set by determining the predominant script of the character data content. The writingMode, whether horizontal or vertical, is used to select the appropriate set of baseline tables and the dominant baseline is used to select the baseline table that corresponds to that baseline. The baseline table font-size component is set to the value of the fontSize property on the element on which the dominantBaseline property occurs.

no-change

The dominant baseline, the baseline table, and the baseline table font-size remain the same as that of the parent text content element.

reset-size

The dominant baseline and the baseline table remain the same, but the baseline table font-size is changed to the value of the fontSize property on this element. This rescales the baseline table for the current fontSize.

ideographic

The baseline identifier for the dominant baseline is set to be 'ideographic,' the derived baseline table is constructed using the 'ideographic' baseline table in the nominal font, and the baseline table font-size is changed to the value of the fontSize property on this element.

alphabetic

The baseline identifier for the dominant baseline is set to be 'alphabetic,' the derived baseline table is constructed using the 'alphabetic' baseline table in the nominal font, and the baseline table font-size is changed to the value of the fontSize property on this element.

hanging

The baseline identifier for the dominant baseline is set to be 'hanging,' the derived baseline table is constructed using the 'hanging' baseline table in the nominal font, and the baseline table font-size is changed to the value of the fontSize property on this element.

mathematical

The baseline identifier for the dominant baseline is set to be 'mathematical,' the derived baseline table is constructed using the 'mathematical' baseline table in the nominal font, and the baseline table font-size is changed to the value of the fontSize property on this element.

central

The baseline identifier for the dominant baseline is set to be 'central.' The derived baseline table is constructed from the defined baselines in a baseline table in the nominal font. That font baseline table is chosen using the following priority order of baseline table names: 'ideographic,' 'alphabetic,' 'hanging,' 'mathematical.' The baseline table font-size is changed to the value of the fontSize property on this element.

middle

The baseline identifier for the dominant baseline is set to be 'middle.. The derived baseline table is constructed from the defined baselines in a baseline table in the nominal font. That font baseline table is chosen using the following priority order of baseline table names: 'alphabetic,' 'ideographic,' 'hanging,' 'mathematica.l. The baseline table font-size is changed to the value of the fontSize property on this element.

text-after-edge

The baseline identifier for the dominant baseline is set to be 'text-after-edge.' The derived baseline table is constructed from the defined baselines in a baseline table in the nominal font. The baseline table font-size is changed to the value of the fontSize property on this element.

text-before-edge

The baseline identifier for the dominant baseline is set to be 'text-before-edge.' The derived baseline table is constructed from the defined baselines in a baseline table in the nominal font. The baseline table font-size is changed to the value of the fontSize property on this element.

inherit

The property takes the same computed value as the property for the element's parent.

CSS information

Applies Totext content elements
Mediavisual
Inheritedno
Initial Valueauto

Standards information

Remarks

A scaled-baseline-table is a compound value that has three components: a baseline identifier for the dominant baseline, a baseline table, and a baseline table font-size. Some values of the property redetermine all three values; others only re-establish the baseline table font-size. When the default value, auto, gives an undesired result, this property can be used to explicitly set the desire scaled-baseline table.

See also

CSSStyleDeclaration
currentStyle
style
SVGTextElement
SVGTextPathElement
SVGTSpanElement
baselineShift

 

 

Show:
© 2014 Microsoft