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 value | baseline |
|---|---|
| Applies to | see individual properties |
| Inherited | no |
| Percentages | N/A |
| Computed value | see individual properties |
| Syntax | [ first | last] || <'alignment-baseline'> || <'baseline-shift'> |
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

| Pixels that differ from Chrome | 2,478 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 238 of 255 |
| The same, on the page without the declaration | 48 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
vertical-align:20px
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:text-top
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:50%
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:middle
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:top
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:text-bottom
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:sub
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:40%
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:4px
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:calc(40% + 20px)
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:calc(20px + 4px)
same effect as Chrome

| Pixels that differ from Chrome | 1,008 |
|---|---|
| The same, on the page without the declaration | 1,008 |
| Largest difference on one colour channel | 48 of 255 |
| The same, on the page without the declaration | 48 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.
vertical-align:top
same effect as Chrome

| Pixels that differ from Chrome | 0 |
|---|---|
| The same, on the page without the declaration | 0 |
| Largest difference on one colour channel | 0 of 255 |
| The same, on the page without the declaration | 0 of 255 |
Identical to Chrome.
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.
| Value | Measured |
|---|---|
first | not measured |
last | not measured |
text-bottom | same effect as Chrome |
alphabetic | not measured |
ideographic | not measured |
middle | same effect as Chrome |
central | not measured |
mathematical | not measured |
hanging | not measured |
text-top | same effect as Chrome |
20px4pxcalc(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 |
toptop | same effect as Chrome same effect as Chrome |
center | not measured |
bottom | not measured |
baseline | not 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