Full version, Basic version

Specification link: 10.9 Alignment properties

text-align-01-b ← index → text-align-03-b

# text-align-02-b
SVG Image | PNG Image

Test the 'baseline-shift' property (horizontal).

This three lines test property 'baseline-shift'. The first line tests 'baseline-shift:7' (i.e., a length for 'baseline-shift'). The red text should shift upward by 7 pixels. The second line tests 'baseline-shift:-70%' (i.e., a percentage for 'baseline-shift'). The red text should shift downward by 70% of the 'font-size'. The third line tests the three keywords 'sub', 'super' and 'normal'. You should see a subscript, superscript and return to normal.

text-align-01-b ← index → text-align-03-b

Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License.
To contribute to a W3C Test Suite, see the policies and contribution forms.