Skip to content

Conversation

@noamr
Copy link
Collaborator

@noamr noamr commented Feb 5, 2025

Closes #6997

This defines the 'border-shape' property with a narrow set of details that we've resolved on, leaving room for discussing some details as we go along.

Specifically, this adds the two variants of 'border-shape' (single/double ).

Issues to be opened separately:

  • interaction with border-{width|color|style}
  • Clipping replaced elements
  • Lots of examples

Closes w3c#6997

This defines the 'border-shape' property with a narrow set of details
that we've resolved on, leaving room for discussing some details as we
go along.

Specifically, this adds the two variants of 'border-shape'
(single/double <basic-shape>).

Issues to be opened separately:
* interaction with border-{width|color|style}
* Clipping replaced elements
* Lots of examples
@noamr noamr requested review from SebastianZ, fantasai and smfr February 5, 2025 10:11
'border-shape' does not affect the flow of content inside the box.
Note: An author can use 'border-shape' in tandem with 'shape-inside' to create effects that decorate the box and control its text flow at the same time.

The inner 'border-shape' clips the content of the element, in the same manner as 'border-radius'.
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps worth spelling out that "in the same manner" means that only if overflow:hidden is set

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Reworded


Issue: define this in detail. Perhaps it should be overridable somehow?

Issue: what do we do about 'border-style'? It can't exactly work for every arbitrary shape.
Copy link
Contributor

Choose a reason for hiding this comment

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

We could support dotted and dashed on the single path variant, but not the two-path variant.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We could support dotted and dashed on the single path variant, but not the two-path variant.

Are we going to stroke the inner and outer paths? Anyway we will have a separate issue for this

@noamr noamr merged commit 584704e into w3c:main Feb 5, 2025
1 check passed
@noamr noamr deleted the border-shape-initial branch February 5, 2025 17:34
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.

[css-shapes-2][css-borders-4] Add a way to change an element's shape

2 participants