Firefox 162 beta adds background-clip: border-area, the last engine to do so

Firefox 162 beta supports background-clip: border-area, so gradient and texture borders will need one CSS rule in every major engine. Here is what shipped and how to use it.

News4 min read
Rounded rectangular frame floating in darkness, its border lit with a teal to violet gradient around a plain black panel
In short
  • 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.
162Firefox version with border-area
150Chrome version that shipped it
3Major engines with support

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

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:

  1. 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.
  2. 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.
  3. Gradient text and border together. background-clip: border-area, text; with color: transparent gives a button whose label and outline share one gradient.
  4. 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-clip one value per background layer, so each layer gets the clip you meant. The background-image guide explains how layer lists work.

Questions about background-clip: border-area

Does background-clip: border-area work with border-radius?

Yes. The clip follows the rounded border shape, which is the main advantage over border-image, since border-image ignores border-radius.

Which browsers support background-clip: border-area?

Safari since 18.2 and Chrome since 150. Firefox adds it in version 162, which is in beta now and due as a stable release on December 8, 2026.

Do I still need border-image or masks for gradient borders?

Only as a fallback for older browser versions. For current versions, a transparent border, background-origin: border-box and background-clip: border-area are enough.

Keep reading

Built for the web.
Free to download.