text-align-lastBaseline · Widely available
The text-align-last CSS property sets the alignment of the last line of text before a forced line break.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Sep 12, 2022. Widely available since Mar 12, 2025.
Browser support
DesktopChrome
1–46Not supported
47+Supportedsince Dec 1, 2015
Current: 155Edge
12+Supportedsince Jul 29, 2015
Current: 154Firefox
1–48Not supported
49+Supportedsince Sep 20, 2016
Current: 157Safari
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27MobileChrome Android
18–46Not supported
47+Supportedsince Dec 2, 2015
Current: 155Firefox Android
4–48Not supported
49+Supportedsince Sep 20, 2016
Current: 157Safari iOS
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: text-align-last.
Feature detection
CSS · check before using
@supports (text-align-last: initial) {
/* styles that rely on text-align-last */
}
/* or in JavaScript */
if (CSS.supports("text-align-last", "initial")) {
// use it
}Documentation (MDN)
Specification
Usage share
Sub-features
Support for each part of the feature (2). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| text-align-last | 47 | 12 | 49 | 16 | 47 | 49 | 16 |
| text-align-last.auto | 47 | 12 | 49 | 16 | 47 | 49 | 16 |