---
title: "Make creative borders with background-clip border-area"
description: "`background-clip: border-area`, available in Safari Technology Preview and Safari 18.2 beta, clips a background image or gradient to the border region."
url: "https://swe.quest/articles/make-creative-borders-with-background-clip-border-area-cdba7fcc9b39e6d8"
canonical: "https://webkit.org/blog/16214/background-clip-border-area/"
source: "WebKit"
published: "2024-11-20"
difficulty: "medium"
kind: "How-to"
reading_minutes: 10
tags: ["css","browsers","frontend"]
---

# Make creative borders with background-clip border-area

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2024-11-20, 10 min read, How-to. Original: [https://webkit.org/blog/16214/background-clip-border-area/](https://webkit.org/blog/16214/background-clip-border-area/)

## Summary

\`background-clip: border-area\`, available in Safari Technology Preview and Safari 18.2 beta, clips a background image or gradient to the border region. That lets a single image, linear, conic or repeating gradient fill any border style, width, radius or subset of sides, unlike nine-slice \`border-image\`. The recipe is a transparent border, a background with \`background-origin: border-box\` (otherwise the padding-box origin repeats the background under the border), and the new clip value. Multiple background layers let it combine with \`background-clip: text\`, and feature queries provide progressive-enhancement fallbacks. Pending CSSWG changes will allow \`border-area text\` in one layer and default the origin to border-box.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CSS](https://swe.quest/tags/css.md) (Web & mobile)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- CSS box model ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- CSS backgrounds and gradients ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))

## Keywords

background-clip, border-area, Safari Technology Preview, Safari 18.2, CSS Working Group, conic-gradient

## Related posts

- [WebKit Features in Safari 18.2](https://swe.quest/articles/webkit-features-in-safari-18-2-9cf887b031bc5207.md): WebKit · 2024-12-09 · Medium · 22 min read · Browsers, CSS, Frontend, WebAssembly
  Safari 18.2 ships 61 new WebKit features and 111 fixes, headlined by cross-document View Transitions (with view-transition-name: auto, transition classes and types, and pageswap/pagereveal events), CSS text-box trimming for optical alignment to cap height, and background-clip: border-area.
- [The CSS shape() function](https://swe.quest/articles/the-css-shape-function-609f89f42453be65.md): WebKit · 2025-04-15 · Medium · 5 min read · CSS, Browsers, Frontend
  CSS shape() lets clip-path, offset-path and similar properties define paths using CSS units, keywords, percentages, calc() and variables, so shapes adapt to element size, unlike path(), whose fixed SVG coordinates can't respond.
- [WebKit Features for Safari 26.2](https://swe.quest/articles/webkit-features-for-safari-26-2-18e103a1cdccebe8.md): WebKit · 2025-12-12 · Medium · 39 min read · Browsers, CSS, Frontend, Accessibility
  Safari 26.2 ships 62 new web platform features and 165 bug fixes, many of which replace JavaScript workarounds with plain HTML and CSS.
- [WebKit Features in Safari 16.2](https://swe.quest/articles/webkit-features-in-safari-16-2-97104b4a5912e4d5.md): WebKit · 2022-12-13 · Medium · 4 min read · CSS, Browsers, Frontend
  Safari 16.2 focuses on cross-browser interoperability as part of Interop 2022, with Safari Technology Preview 159 passing 98.5% of the Interop tests.
- [WebKit Features for Safari 27.2](https://swe.quest/articles/webkit-features-for-safari-27-2-f545f4ccec69d87b.md): WebKit · 2026-10-26 · Medium · 5 min read · Browsers, CSS, Frontend, Accessibility
  Safari 27.2 refines Customizable Select with a new \`::field-content\` pseudo-element for styling the displayed selected option without \`\<selectedcontent\>\`, adjusts \`appearance: base-select\` UA styles (flex-based button spacing, inherited \`text-overflow\`, simpler \`::picker-icon\`), and uses \`safe\` alignment so large pickers stay within the viewport.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
