coderef

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: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–48Not supported
49+Supportedsince Sep 20, 2016
Current: 157
Safari
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27
MobileChrome Android
18–46Not supported
47+Supportedsince Dec 2, 2015
Current: 155
Firefox Android
4–48Not supported
49+Supportedsince Sep 20, 2016
Current: 157
Safari iOS
1–15.6Not supported
16+Supportedsince Sep 12, 2022
Current: 27

How 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
}

Sub-features

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

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
text-align-last47124916474916
text-align-last.auto47124916474916