background-clip: border-area (gradient borders)

Chrome 150 only (June 2026). Not Baseline.

Chrome 150Edge 150Safari noFirefox no

Clips a background to the border box minus the padding box, so a gradient border is one declaration, without `border-image` (which breaks `border-radius`) or the double-background trick.

Gradient border, rounded
CSS
.fx-057{
  padding:16px 20px;border:3px solid transparent;border-radius:14px;font:600 15px system-ui;
  background:linear-gradient(#fff,#fff) padding-box,linear-gradient(120deg,#2563eb,#ec4899) border-box; /* fallback */
}
@supports (background-clip: border-area){
  .fx-057{background:linear-gradient(120deg,#2563eb,#ec4899);background-clip:border-area}
}
HTML
<div class="fx-057">Gradient border, rounded</div>

Fallback: The padding-box/border-box double background above is the cross-browser fallback.

Source: developer.chrome.com/release-notes/150

Prompt

For gradient borders with radius use `border: Npx solid transparent; background: <gradient>; background-clip: border-area` inside `@supports (background-clip: border-area)`, with the classic two-layer `padding-box` / `border-box` background as the fallback. Never use `border-image` when corners must be rounded.