- Mozilla opened the Firefox 162 beta on November 23, 2026, with support for the border-area value of background-clip. Stable is due December 8, 2026.
- Chrome shipped border-area in version 150 on June 30, 2026. Safari has had it since 18.2.
- border-area clips a background to the shape the border strokes paint, so one gradient or texture can fill a border without border-image.
Mozilla opened the Firefox 162 beta on November 23, 2026. The Firefox 162 beta release notes list the border-area value for the CSS background-clip property, and 9to5Linux reported the same feature in its coverage of the beta. Chrome and Safari already support it, so once Firefox 162 reaches stable on December 8, 2026, border-area will work in all three major engines.
For background work this closes a long gap: gradient and texture borders, written as plain background layers. Teams that need to roll it out across a component library can hire front end web developers from YuSMP Group for the review, but the change itself is small, as the snippets below show.
What shipped in Firefox 162 beta?
Firefox 162 beta adds border-area as a new value of background-clip. The Firefox 162 release notes for developers list it under CSS, tracked as Firefox bug 2093287. The same beta enables the CSS Typed Object Model by default and adds the headingoffset and headingreset HTML attributes.
Where the other browsers stand
- Safari was first. The WebKit team introduced border-area with Safari 18.2 in late 2024.
- Chrome followed in Chrome 150, released June 30, 2026.
- Firefox joins with version 162, now in beta.
Visitors on release Firefox will not see border-area until December 8, so plan a fallback, covered below.
What does border-area do?
border-area clips a background to the area painted by the element's border strokes. It respects border-width and border-style, and it ignores the transparency of border-color. That last part is the trick: you set a transparent border, and the background shows only where the border would be.
Until now, the usual gradient border was border-image, which ignores border-radius, or two stacked backgrounds with a padding-box layer on top. border-area keeps rounded corners and needs one declaration:
.card {
border: 4px solid transparent;
border-radius: 16px;
background-image: linear-gradient(135deg, #2dd4bf, #8b5cf6);
background-origin: border-box;
background-clip: border-area;
}
Set background-origin: border-box as well. Without it, the gradient starts at the padding edge and the border shows only its tail end.
How can you use border-area with backgrounds?
border-area works per background layer, so it combines with the layers you already use:
- Texture frames. WebKit's own demo fills a 30px transparent border with a wood photo. Any of our 9 excellent wood backgrounds works the same way, with
background-size: cover. - Gradient border plus plain fill. List two layers and two clip values:
background-clip: border-area, padding-box;. The first layer paints the border, the second paints a solid panel inside it. - Gradient text and border together.
background-clip: border-area, text;withcolor: transparentgives a button whose label and outline share one gradient. - Progress rings. A round element with a thick transparent border and a
conic-gradient()turns into a ring chart, as in the WebKit examples.
Choosing between a CSS gradient and a photo for the border fill involves the same trade-offs as any surface. Our guide to CSS gradients vs image backgrounds covers weight and sharpness.
What fallback do you need until December 8?
Guard border-area with @supports and keep a solid border as the default. Browsers that do not know border-area drop the whole background-clip declaration, and with a transparent border the gradient then fills the entire box:
.card { border: 4px solid #2dd4bf; border-radius: 16px; }
@supports (background-clip: border-area) {
.card {
border-color: transparent;
background-image: linear-gradient(135deg, #2dd4bf, #8b5cf6);
background-origin: border-box;
background-clip: border-area;
}
}
- Contrast. If the border marks focus or an error state, check it against the page background. Our contrast guide has the numbers.
- Weight. A texture photo used only for a 4px border is wasted bytes. Use a gradient for thin borders and save photos for thick frames.
- Layers. Give
background-clipone value per background layer, so each layer gets the clip you meant. The background-image guide explains how layer lists work.



