# corner-shape and card links: the shape and the click area

Josh W. Comeau shows how to build beveled corners with CSS corner-shape, which only Chromium browsers support as he writes. SDG says an automated reviewer found a full-card link covering a page header. The same shape can hide a different click area. Both sources promote their own products.

- Language: en
- Published: 2026-12-03
- Tags: dev, web, css, corner-shape, responsive, accessibility, testing
- URL: https://devs7ud.io/en/trends/web-css-corner-shape-bevel-card-link-hit-area-en
- Translation (ko): https://devs7ud.io/trends/web-css-corner-shape-bevel-card-link-hit-area.md

## The shape you see and the area you press

Two things can look identical on screen and still differ: how a browser draws them and where a click lands. Here are two unrelated cases, the new CSS property corner-shape and links that cover a whole card.

Josh W. Comeau is a developer who runs CSS courses, and SDG is a development company that builds Shopify-based commerce. Both articles promote their own products. Comeau points to an NPM package and a course he sells, and SDG presents its method of working with an AI agent.

| 항목 | 값 | 설명 |
| --- | --- | --- |
| Chrome 159 date for the border-overlap fix, December | 8th | Comeau says the fix ships on that date |
| Releases SDG shipped in one day | 5releases | On November 29, with more than 140 pages changed, SDG says |
| Accessibility scans SDG ran | 500or more | WCAG 2.2 AA, every page and its interactive states, SDG says |

_Sources: Josh W. Comeau, SDG. Both articles promote their own products, and SDG's figures are its own._

## border-radius sets the bevel depth

With corner-shape: bevel, border-radius draws a diagonal instead of a round curve. The value can go up to half the element's size, the same rule as rounded corners. Because the border box itself becomes beveled, outline and box-shadow follow the diagonal too.

![Our drawing: three pairs of boxes with the same 8px, 16px and 32px values, rounded on the left and beveled with corner-shape: bevel on the right](/blog-img/web-css-corner-shape-bevel-card-link-hit-area/1-en.png)

_Figure: our own drawing._

```css
.box {
  corner-shape: bevel;
  border: 4px solid;
  border-radius: 32px;
}
```

**corner-shape and clip-path**

| Item | corner-shape: bevel | clip-path |
| --- | --- | --- |
| How it applies | Changes the shape of the border box | Cuts after borders, outlines and shadows are drawn |
| outline | Follows the diagonal | Cut after it is drawn |
| box-shadow | Follows the diagonal | Cut after it is drawn |
| border-radius value | Becomes the bevel depth | Not applicable |

_Source: Josh W. Comeau._

## Unsupported browsers keep round corners

As Comeau writes, corner-shape is supported only in Chromium browsers, and it is implemented in Safari 27.3 beta and Firefox 162 nightly. So he treats it as a progressive enhancement: browsers without it keep round corners.

**The fallback fork**

- A box with corner-shape → Supporting browser (Chromium browsers)
- A box with corner-shape → Unsupported browser (Any other browser)

_Source: Josh W. Comeau, as of December 1, 2026._

| Browser | corner-shape status |
| --- | --- |
| Chromium browsers | Supported |
| Safari 27.3 beta | Implemented |
| Firefox 162 nightly | Implemented |

_Source: Josh W. Comeau, as of December 1, 2026._

Splitting colors adds one more catch. Chrome has a bug where adjacent borders in different colors overlap, so Comeau drew the top three and bottom three edges with ::before and ::after. The fix is due in Chrome 159 on December 8.

![Our drawing: a beveled octagon whose top three edges are light, bottom three are dark and two sides are in between, drawn with ::before, ::after and outline](/blog-img/web-css-corner-shape-bevel-card-link-hit-area/2-en.png)

_Figure: our own drawing, a simplified version of the setup Comeau describes._

## When a whole card is a link

SDG says it shipped its site rebuild in five releases on November 29 and changed more than 140 pages. An automated reviewer found full-card links on the Events page covering the page header, and SDG added a check that fails any release in which a card link escapes its card. A test of every control on every page found no other cases, it says.

![Our drawing: a tablet screen with a header and two cards, a dotted yellow card-link area spilling up into the header, labeled Card link spills into the header](/blog-img/web-css-corner-shape-bevel-card-link-hit-area/3-en.png)

_Figure: our own drawing._

**How SDG caught it**

- Release prepared → Required checks
- Required checks → An automated reviewer finds the link area spilling over
- An automated reviewer finds the link area spilling over → A check that fails card links leaving their card is added
- A check that fails card links leaving their card is added → Merge

_Source: SDG. The order summarizes the article._

**The four catches SDG lists**

| Problem | Found by | Fix |
| --- | --- | --- |
| A phone badge also showing at tablet width on the homepage | Reviewer | Fixed, with a test |
| A partner-tier answer in a tense that would be wrong on one side of January 1 | Reviewer | Answer now follows the date |
| A card link on the Events page covering the page header | Reviewer | A check that fails card links leaving their card |
| A slow first mobile performance run after a merge | Performance run | Eighteen reruns showed a cold-start artifact, and a warm-up run was added |

_Source: SDG. The article promotes SDG's method, so the results are SDG's own account. None of the four reached a customer, it says._

## Five rows for the checklist

| Area | Check | Where it fails | How to check |
| --- | --- | --- | --- |
| Bevel fallback | Browsers without corner-shape keep round corners | Browsers outside Chromium | Open the same screen in two kinds of browser and compare |
| Border colors | Adjacent borders in different colors do not overlap | Before Chrome 159 | Compare with a version split into ::before and ::after |
| Focus indicator | The outline approach does not cover the focus ring | When used directly on a button, link or input | Apply the bevel to a wrapping div and move through it by keyboard |
| Clicks outside the card | A full-card link does not cover elements outside the card | The page header above a card list | Press the header and controls outside the card |
| Tablet width | Phone-only elements do not remain at tablet width | The homepage at tablet width | Check the same screen at three screen widths |

_Sources: Josh W. Comeau, SDG. Only the checks the two cases share._

## View

- Check how a new CSS property looks in browsers that do not support it, first.
- If a whole card is a link, add one more check that presses the header and controls outside the card.
- Add rows to the checklist one at a time, cheapest first.

Seeing the same shape is easy to mistake for getting the same click area, in my view.

**Order of checks**

- Apply a shape-changing CSS → Check the fallback in an unsupported browser
- Check the fallback in an unsupported browser → Press outside the card and test focus
- Press outside the card and test focus → Add a row to the checklist

_This article lays out the order._

## Sources

- [Josh W. Comeau on corner-shape](https://www.joshwcomeau.com/css/bevel-corners/) — December 1, 2026, includes his own NPM package and course
- [SDG on its website rebuild](https://www.sdg.la/news/sdg-website-rebuilt-with-agentic-delivery/) — November 29, 2026, includes SDG's own method
