coderef

alignment-baselineLimited availability

The alignment-baseline CSS property sets which baseline of an element is aligned with the corresponding baseline of its parent.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1+Supportedsince Dec 11, 2008
Current: 155
Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
1–5Not supported
5.1+Supportedsince Jul 20, 2011
Current: 27
MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
1–4.2Not supported
5+Supportedsince Oct 12, 2011
Current: 27

How to use

Not supported in Firefox, Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: alignment-baseline.

Feature detection

CSS · check before using
@supports (alignment-baseline: initial) {
  /* styles that rely on alignment-baseline */
}

/* or in JavaScript */
if (CSS.supports("alignment-baseline", "initial")) {
  // use it
}

Sub-features

Support for each part of the feature (9). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
alignment-baseline1791495.1181495
alignment-baseline.alphabetic1791535.1181535
alignment-baseline.baseline1791495.1181495
alignment-baseline.central1791535.1181535
alignment-baseline.ideographic1791535.1181535
alignment-baseline.mathematical1791535.1181535
alignment-baseline.middle1791495.1181495
alignment-baseline.text-after-edge179✕5.118✕5
alignment-baseline.text-before-edge179✕5.118✕5