coderef

outlineBaseline · Widely available

The outline CSS shorthand sets the color, style, and width of a line around an element, outside of the border.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Mar 27, 2023. Widely available since Sep 27, 2025.

Browser support

DesktopChrome
1–93Not supported
94+Supportedsince Sep 21, 2021
Current: 155
Edge
12–93Not supported
94+Supportedsince Sep 24, 2021
Current: 154
Firefox
1–87Not supported
88+Supportedsince Apr 19, 2021
Current: 157
Safari
1–16.3Not supported
16.4+Supportedsince Mar 27, 2023
Current: 27
MobileChrome Android
18–93Not supported
94+Supportedsince Sep 21, 2021
Current: 155
Firefox Android
4–87Not supported
88+Supportedsince Apr 19, 2021
Current: 157
Safari iOS
1–16.3Not supported
16.4+Supportedsince Mar 27, 2023
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: outline.

Feature detection

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

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

Documentation (MDN)

Specification

Sub-features

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

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
outline94948816.4948816.4
outline.auto94948816.4948816.4
outline.currentColor94948816.4948816.4
outline.dashed94948816.4948816.4
outline.dotted94948816.4948816.4
outline.double94948816.4948816.4
outline.groove94948816.4948816.4
outline.inset94948816.4948816.4
outline.medium94948816.4948816.4
outline.none94948816.4948816.4
outline.outset94948816.4948816.4
outline.ridge94948816.4948816.4
outline.solid94948816.4948816.4
outline.thick94948816.4948816.4
outline.thin94948816.4948816.4
outline.transparent94948816.4948816.4