paint-order
Widely availableSince 202497% of users
An SVG-related property that controls whether an element's fill or stroke is drawn first. This is useful for preventing a thick stroke from obscuring the fill of a shape or text.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since March 2024. Widely available since September 2026.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
normal- Inherited
- Yes
- Applies to
- text elements
- Animation type
- discrete
Quick example
path {
stroke-width: 10px;
stroke: black;
fill: white;
/* Draws the fill ON TOP of the stroke so the fill stays the correct size */
paint-order: stroke fill;
}Values
normalfillstrokemarkerspaint-order browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2024.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
123+
60+
11+
123+Mobile
123+Android
60+Android
11+iOS