coderef

Widows and orphansLimited availability

The widows and orphans CSS properties set the minimum lines included in a text fragment created by page, column, or region breaks.

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

Browser support

DesktopChrome
1–24Not supported
25+Supportedsince Feb 21, 2013
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
1–1.2Not supported
1.3+Supportedsince Apr 15, 2005
Current: 27
MobileChrome Android
18–18Not supported
25+Supportedsince Feb 27, 2013
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
1+Supportedsince Jun 29, 2007
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: orphans.

Feature detection

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

/* or in JavaScript */
if (CSS.supports("orphans", "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
orphans2512✕1.325✕1
widows2512✕1.325✕1