The experimental CSS `border-shape` property, available in Chrome Canary 146+ behind a flag, redefines how elements can take on non-rectangular geometry. Unlike `clip-path` which merely masks an element, `border-shape` redefines the actual box so that backgrounds, border-images, focus outlines, and box-shadows all conform to the new shape. It accepts basic shapes (`circle()`, `ellipse()`, `polygon()`), the new `shape()` function with SVG-like path commands, and raw path strings. The post compares it to `corner-shape` (limited to corner styling) and walks through practical demos: CSS tooltips with dynamic arrow positioning, chevron navigation tabs, and scalloped borders using arc commands. Code examples show how CSS custom properties can parameterize shapes, and a `clip-path` fallback strategy is recommended for unsupported browsers. The feature is part of CSS Borders and Box Decorations Level 4.
Table of contents
All about border-shapeborder-shape vs. corner-shapeTooltips with border-shapeChevron nav demoScalloped BordersWrap upSort: