w3c / w3c/csswg-drafts

[css-shapes] Clarify which `<basic-shape>` are valid in `shape-*`

Open
#9,728 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-shapes-1 css-shapes-2 Needs Edits
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

shape-outside (CSS Shapes 1) and shape-inside (CSS Shapes 2) are defined with this prose:

<basic-shape>: The shape is computed based on the values of one of inset(), circle(), ellipse() or polygon().

It is not clear to me if xywh(), rect(), path(), should be invalid.

In SVG 2, <basic-shape> is even further restricted in shape-inside and shape-substract, but I assume these are superseded by CSS Shapes.

This was previously reported in the multi-faceted issue #7390.

Contributor guide

Open the contributing guide

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

Read the CSS Shapes 1 and CSS Shapes 2 definitions linked in the issue, then compare their treatment with the SVG 2 references and the discussion in issue #7390. Determine which functions are valid for shape-* and update the relevant specification prose so the allowed values are explicit.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.