Skip to content
Skip the list of specifications

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 value0
Applies toinline-level boxes and SVG text content elements
Inheritedno
Percentagesrefer to the used value of line-height
Computed valuethe specified keyword or a computed <length-percentage> value
Syntax<length-percentage> | sub | super | top | center | bottom

The definition in css-inline-3

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
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,804
The same, on the page without the declaration863
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

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

The example’s page

baseline-shift: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 Chrome1,264
The same, on the page without the declaration863
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

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

The example’s page

baseline-shift:50%

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 Chrome1,072
The same, on the page without the declaration863
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 of 255

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

The example’s page

baseline-shift:20px

not decided
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 Chrome882
The same, on the page without the declaration863
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 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.

The example’s page

baseline-shift:40%

not decided
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 Chrome987
The same, on the page without the declaration863
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 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.

The example’s page

baseline-shift:calc(40% + 20px)

not decided
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,003
The same, on the page without the declaration863
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 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.

The example’s page

baseline-shift:calc(20px + 4px)

not decided
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 Chrome886
The same, on the page without the declaration863
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 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.

The example’s page

baseline-shift: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 Chrome862
The same, on the page without the declaration863
Largest difference on one colour channel204 of 255
The same, on the page without the declaration204 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.

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 7 branches, and 4 of them carry a measurement.

ValueMeasured
20px
4px
calc(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
topnot measured
centernot measured
bottomnot 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