web-platform-tests / web-platform-tests/interop

CSS ` border-shape`

Open
#1,371 1 comment 245 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

focus-area-proposal
Dominant language
JavaScript
Stars
524
Forks
35
Avg merge
1d 4h
Merged PRs (30d)
10

Description

Description

CSS border-shape (CSS Borders and Box Decorations Module Level 4) lets authors define an element’s border geometry using values (circle(), ellipse(), polygon(), inset(), shape(), path(), rect()) instead of a rectangle.

It has two modes: a single shape “stroke” mode, where the border is drawn along the path, and a two shape “fill” mode, where the border fills the area between an outer and inner shape.

Unlike clip-path, which only masks the rendered box, border-shape redefines the actual border geometry, so background, border image, outline and box shadow all correctly follow the new shape. It removes the need for clip-path plus pseudo element hacks for things like speech bubbles, scalloped cards, cut corner tooltips and hexagonal avatars.

Specification

https://drafts.csswg.org/css-borders-4/#border-shape

web-feature

border-shape

Test Links

Rendering tests are non-tentative:

Parsing tests still sit under tentative/ (worth flagging, since rendering has already graduated out of tentative status, you’d expect parsing to follow before or during the Interop review):

Live results: https://wpt.fyi/results/css/css-borders/border-shape?label=master&label=experimental&aligned&q=border-shape

Additional Signals
Standard Positions
Signals

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CSS Borders and Box Decorations Level 4 specification and the non-tentative tests in css/css-borders/border-shape. Compare the rendering and tentative parsing tests with the live WPT results, then review the linked browser-position signals. Done requires a clearly scoped interop assessment, but this issue does not define an implementation change.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
testing-qa, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.