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: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
1–5Not supported
5.1+Supportedsince Jul 20, 2011
Current: 27MobileChrome Android
18+Supportedsince Jun 27, 2012
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
1–4.2Not supported
5+Supportedsince Oct 12, 2011
Current: 27How 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
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (9). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| alignment-baseline | 1 | 79 | 149 | 5.1 | 18 | 149 | 5 |
| alignment-baseline.alphabetic | 1 | 79 | 153 | 5.1 | 18 | 153 | 5 |
| alignment-baseline.baseline | 1 | 79 | 149 | 5.1 | 18 | 149 | 5 |
| alignment-baseline.central | 1 | 79 | 153 | 5.1 | 18 | 153 | 5 |
| alignment-baseline.ideographic | 1 | 79 | 153 | 5.1 | 18 | 153 | 5 |
| alignment-baseline.mathematical | 1 | 79 | 153 | 5.1 | 18 | 153 | 5 |
| alignment-baseline.middle | 1 | 79 | 149 | 5.1 | 18 | 149 | 5 |
| alignment-baseline.text-after-edge | 1 | 79 | ✕ | 5.1 | 18 | ✕ | 5 |
| alignment-baseline.text-before-edge | 1 | 79 | ✕ | 5.1 | 18 | ✕ | 5 |