Skip to content

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.

Published

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.

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

Figure: our own drawing.

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

corner-shape and clip-path

corner-shape and clip-path
How it appliesChanges the shape of the border boxCuts after borders, outlines and shadows are drawn
outlineFollows the diagonalCut after it is drawn
box-shadowFollows the diagonalCut after it is drawn
border-radius valueBecomes the bevel depthNot applicable

Source: Josh W. Comeau.

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.

A box with corner-shape
Supporting browserBeveled corners
Unsupported browserRound corners from border-radius
  • 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.
데이터 표
Chromium browsersSupported
Safari 27.3 betaImplemented
Firefox 162 nightlyImplemented

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

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

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

Figure: our own drawing.

Release prepared
Required checksRelease check, Lighthouse, accessibility scan
An automated reviewer finds the link area spilling over
A check that fails card links leaving their card is added
Merge
  • 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

The four catches SDG lists
A phone badge also showing at tablet width on the homepageReviewerFixed, with a test
A partner-tier answer in a tense that would be wrong on one side of January 1ReviewerAnswer now follows the date
A card link on the Events page covering the page headerReviewerA check that fails card links leaving their card
A slow first mobile performance run after a mergePerformance runEighteen 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.

데이터 표
Bevel fallbackBrowsers without corner-shape keep round cornersBrowsers outside ChromiumOpen the same screen in two kinds of browser and compare
Border colorsAdjacent borders in different colors do not overlapBefore Chrome 159Compare with a version split into ::before and ::after
Focus indicatorThe outline approach does not cover the focus ringWhen used directly on a button, link or inputApply the bevel to a wrapping div and move through it by keyboard
Clicks outside the cardA full-card link does not cover elements outside the cardThe page header above a card listPress the header and controls outside the card
Tablet widthPhone-only elements do not remain at tablet widthThe homepage at tablet widthCheck the same screen at three screen widths

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

  • 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.

Apply a shape-changing CSS
Check the fallback in an unsupported browser
Press outside the card and test focus
Add a row to the checklist
  • 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.