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

```
[ <basic-shape> [ <line-width> || <geometry-box> ] ]{2}
```
The two-shape form doesn't take a line width, because it just fills the space between the shapes. But I suppose you could stroke both shapes? If you allow that, then authors will want different colors and widths for the inner and outer strokes.

> How does this interact with other properties like corner-shape, border-radius, border-*-width, border-*-style, etc.? Is it meant to be a shorthand for them?

It could just subsume `corner-shape`. Do we need both?
Interaction with `border-radius` gets tricky because of all the longhands. Also specifying all corner radii in this property could get cumbersome. I'm not sure what to do here.

> May `<line-style>` be used instead of the restricted `<border-line-style>`?

These values don't make sense on arbitrary paths: `groove, ridge, inset, outset` and `double is hard to implement efficiently.

> How are line styles meant to be drawn?

That's why I limited to solid, dashed and dotted :)

> Are the shapes restricted somehow to avoid overly huge ink overflows?

I say no. Authors can already create large ink overflow with shadows.

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


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

Received on Thursday, 12 September 2024 01:09:19 UTC