Skip to content

Update shape() CSS function description#1266

Open
captainbrosset wants to merge 3 commits into
web-platform-tests:mainfrom
captainbrosset:patch-2
Open

Update shape() CSS function description#1266
captainbrosset wants to merge 3 commits into
web-platform-tests:mainfrom
captainbrosset:patch-2

Conversation

@captainbrosset

Copy link
Copy Markdown
Contributor

Expanded the description of the shape() CSS function to include additional shape functions.

Expanded the description of the shape() CSS function to include additional shape functions.
Comment thread 2026/README.md Outdated
Comment thread 2026/README.md Outdated
Comment thread 2026/README.md
@@ -260,7 +260,7 @@ CSS scroll snap controls the panning and scrolling behavior within a scroll cont

### CSS shape()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Since the content below has been revised, how about changing the title to “CSS <basic-shape>”?
https://drafts.csswg.org/css-shapes/#typedef-basic-shape

Comment thread 2026/README.md
### CSS shape()

The `shape()` CSS function creates shapes with a series of commands like line, move, and curve. It can be used with `clip-path` and `shape-outside`.
The `circle()`, `ellipse()`, `inset()`, `path()`, `polygon()`, `rect()`, `shape()`, and `xywh()` CSS functions create shapes for use with `clip-path` and `shape-outside`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I suggest that the order of the functions should also align with the CSS specification:

<basic-shape> = <inset()> | <rect()> | <xywh()> | <circle()> | <ellipse()> |  <polygon()> | <path()> | <shape()>

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants