Re: [csswg-drafts] [css-shapes-2][css-borders-4] Add a way to change an element's shape (#6997)

Some thought about how `border-shape` works with `border-width`  (hopefully we'll have time to discuss it at the F2F):
It would be confusing in some scenarios if `border-width` affected both the box model and the stroke of a shape that might not be boxy at all. An author might change the `border-width` in order to change the stroke, to find out that it moves the child elements because the padding box had now moved...

This is an issue with `border-shape` being purely decorative on one hand, but respecting layout properties for its style on the other hand.

I wonder if `border-shape` should have a `stroke` in addition to the shape(s), which could have the `border-width` as a default. Same for `fill` and `border-color`. 


-- 
GitHub Notification of comment by noamr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6997#issuecomment-2619921409 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 28 January 2025 19:49:19 UTC