Skip to content
Skip the list of specifications

vertical-align

matches Chrome on some values: 12 of 13 examples match Chrome

css-inline-3

Some of the examples match Chrome and some do not: the count says how many, and the values that differ are listed first, each with its difference map.

The one that does not: vertical-align:super. It comes first below, with its difference map.

What the specification says

Initial valuebaseline
Applies tosee individual properties
Inheritedno
PercentagesN/A
Computed valuesee individual properties
Syntax[ first | last] || <'alignment-baseline'> || <'baseline-shift'>

The definition in css-inline-3

The measurements

13 examples: one renders differently and comes first and 12 match Chrome. Each is one declaration on a small page, drawn by Chrome and by our engine. Drag on a picture to move the line between them.

vertical-align:super

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome2,478
The same, on the page without the declaration1,008
Largest difference on one colour channel238 of 255
The same, on the page without the declaration48 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

vertical-align:20px

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:text-top

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:50%

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:middle

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:top

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:text-bottom

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:sub

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:40%

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:4px

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:calc(40% + 20px)

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:calc(20px + 4px)

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome1,008
The same, on the page without the declaration1,008
Largest difference on one colour channel48 of 255
The same, on the page without the declaration48 of 255

The pages differ by 1,008 pixels with the declaration and by 1,008 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

vertical-align:top

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

Which values were measured

A match on one example means a match at the value tried. The property’s grammar has 18 branches, and 8 of them carry a measurement. At most 12 examples are published per property, so a branch past that is left out by our choice.

ValueMeasured
firstnot measured
lastnot measured
text-bottom
same effect as Chrome
alphabeticnot measured
ideographicnot measured
middle
same effect as Chrome
centralnot measured
mathematicalnot measured
hangingnot measured
text-top
same effect as Chrome
20px
4px
calc(20px + 4px)
same effect as Chrome
same effect as Chrome
same effect as Chrome
50%
40%
calc(40% + 20px)
same effect as Chrome
same effect as Chrome
same effect as Chrome
sub
same effect as Chrome
super
renders differently
top
top
same effect as Chrome
same effect as Chrome
centernot measured
bottomnot measured
baselinenot measured

Tests that name this property

4 web-platform-tests link to this property’s definition. Few tests carry such a link, so a short list says little about the property.

Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured