baseline-shift
matches Chrome on some values: 1 of 4 decided examples match Chrome; 4 not decided
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 3 that do not: baseline-shift:sub, baseline-shift:super, baseline-shift:50%. They come first below, each with its difference map.
What the specification says
| Initial value | 0 |
|---|---|
| Applies to | inline-level boxes and SVG text content elements |
| Inherited | no |
| Percentages | refer to the used value of line-height |
| Computed value | the specified keyword or a computed <length-percentage> value |
| Syntax | <length-percentage> | sub | super | top | center | bottom |
The measurements
8 examples: three render differently and come first, one matches Chrome and four are not decided. 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.
baseline-shift:sub
renders differently

| Pixels that differ from Chrome | 1,804 |
|---|---|
| The same, on the page without the declaration | 863 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
baseline-shift:super
renders differently

| Pixels that differ from Chrome | 1,264 |
|---|---|
| The same, on the page without the declaration | 863 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
baseline-shift:50%
renders differently

| Pixels that differ from Chrome | 1,072 |
|---|---|
| The same, on the page without the declaration | 863 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
baseline-shift:20px
not decided

| Pixels that differ from Chrome | 882 |
|---|---|
| The same, on the page without the declaration | 863 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The pages differ by 882 pixels with the declaration and by 863 without it: a little more, but within the difference the text already makes, so the measurement does not decide this example.
baseline-shift:40%
not decided

| Pixels that differ from Chrome | 987 |
|---|---|
| The same, on the page without the declaration | 863 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The pages differ by 987 pixels with the declaration and by 863 without it: a little more, but within the difference the text already makes, so the measurement does not decide this example.
baseline-shift:calc(40% + 20px)
not decided

| Pixels that differ from Chrome | 1,003 |
|---|---|
| The same, on the page without the declaration | 863 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The pages differ by 1,003 pixels with the declaration and by 863 without it: a little more, but within the difference the text already makes, so the measurement does not decide this example.
baseline-shift:calc(20px + 4px)
not decided

| Pixels that differ from Chrome | 886 |
|---|---|
| The same, on the page without the declaration | 863 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The pages differ by 886 pixels with the declaration and by 863 without it: a little more, but within the difference the text already makes, so the measurement does not decide this example.
baseline-shift:4px
same effect as Chrome

| Pixels that differ from Chrome | 862 |
|---|---|
| The same, on the page without the declaration | 863 |
| Largest difference on one colour channel | 204 of 255 |
| The same, on the page without the declaration | 204 of 255 |
The pages differ by 862 pixels with the declaration and by 863 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.
Which values were measured
A match on one example means a match at the value tried. The property’s grammar has 7 branches, and 4 of them carry a measurement.
| Value | Measured |
|---|---|
20px4pxcalc(20px + 4px) | not decided same effect as Chrome not decided |
50%40%calc(40% + 20px) | renders differently not decided not decided |
sub | renders differently |
super | renders differently |
top | not measured |
center | not measured |
bottom | not measured |
Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured