Skip to content

Technical review: Document border-shape#44191

Open
chrisdavidmills wants to merge 3 commits into
mdn:mainfrom
chrisdavidmills:document-border-shape
Open

Technical review: Document border-shape#44191
chrisdavidmills wants to merge 3 commits into
mdn:mainfrom
chrisdavidmills:document-border-shape

Conversation

@chrisdavidmills
Copy link
Copy Markdown
Contributor

Description

Chrome 147 adds support for the border-shape property; see https://chromestatus.com/feature/5459864205393920.

This PR documents the new property.

Motivation

Additional details

Related issues and pull requests

@chrisdavidmills chrisdavidmills requested a review from a team as a code owner May 19, 2026 15:52
@chrisdavidmills chrisdavidmills requested review from dipikabh and removed request for a team May 19, 2026 15:52
@github-actions github-actions Bot added Content:CSS Cascading Style Sheets docs size/l [PR only] 501-1000 LoC changed labels May 19, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

Preview URLs (3 pages)

Flaws (4)

Note! 2 documents with no flaws that don't need to be listed. 🎉

Found an unexpected or unresolvable flaw? Please report it here.

URL: /en-US/docs/Web/CSS/Reference/Properties/border-shape
Title: border-shape CSS property
Flaw count: 4

  • macros:
    • Macro csssyntax produces link /en-US/docs/Web/CSS/Reference/Values/top which doesn't resolve
    • Macro csssyntax produces link /en-US/docs/Web/CSS/Reference/Values/right which doesn't resolve
    • Macro csssyntax produces link /en-US/docs/Web/CSS/Reference/Values/bottom which doesn't resolve
    • Macro csssyntax produces link /en-US/docs/Web/CSS/Reference/Values/left which doesn't resolve
External URLs (1)

URL: /en-US/docs/Web/CSS/Reference/Properties/border-shape
Title: border-shape CSS property

(comment last updated: 2026-05-26 13:16:02)

- {{cssxref("corner-top-right-shape")}}
- {{cssxref("corner-top-shape")}}

The CSS borders and box decorations module level 4 also introduces the `border-shape`, `border-limit`, and `border-clip` properties, along with the `border-clip-bottom`, `border-clip-left`, `border-clip-right`, `border-clip-top` longhand properties. Currently, no browsers support these features. The module also introduces component properties for the well supported {{cssxref("border-radius")}} and {{cssxref("box-shadow")}} properties, including `border-block-end-radius`, `border-block-start-radius`, `border-bottom-radius`, `border-inline-end-radius`, `border-inline-start-radius`, `border-right-radius`, `border-top-radius`, `box-shadow-blur`, `box-shadow-color`, `box-shadow-offset`, `box-shadow-position`, and `box-shadow-spread`. These component properties are also as yet unsupported.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably keep it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a list of properties that are not yet supported in any browser. I've removed border-shape here since it is now supported in Chromium, and added it to the bulleted list above the paragraph.

@danielsakhapov
Copy link
Copy Markdown

Maybe add some note and examples on box-shadow?

And put some examples at the very start of the article (since it's quite a visual feature?).

I guess also showing an example with a tooltip could be helpful (and explaining the difference between a tooltip with clip-path vs border-shape)?

@chrisdavidmills
Copy link
Copy Markdown
Contributor Author

Maybe add some note and examples on box-shadow?

I've already included multiple examples that demonstrate how box-shadow interacts with border-shape, and called it out in the "Description" section. Is there anything more to say here?

@chrisdavidmills
Copy link
Copy Markdown
Contributor Author

And put some examples at the very start of the article (since it's quite a visual feature?).

I guess also showing an example with a tooltip could be helpful (and explaining the difference between a tooltip with clip-path vs border-shape)?

In my next commit, I have added a section to the description that compares border-shape and clip-path.

To address your other points here, I will also add a tooltip example, hopefully as a live interactive example at the very top of the article.

@chrisdavidmills
Copy link
Copy Markdown
Contributor Author

To address your other points here, I will also add a tooltip example, hopefully as a live interactive example at the very top of the article.

The interactive example looked really messy, so I instead put an example high up inside the description. I decided to do a speech bubble rather than a tooltip, as it was more interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs size/l [PR only] 501-1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants