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

Here's my fuller proposal, in more detail:

* By default, the single-path syntax determines its stroke width and color by consulting the border-width and border-color properties. Its width and color at any point depends on the path direction: directly to the right takes from `border-top-*`, directly down takes from `border-left-*`, etc; between those angles it linearly interpolates the width and color.
* Possibly, you can override this by specifying a single specific width and color in the syntax.
* Optionally, you can provide a gradient-stop-like list of widths and colors, each associated with a path distance (0% indicating the start, and 100% indicating the end, or lengths can be used). This overrides width/color behavior from the border-* properties. Possibly we just let this completely handle the previous bullet's case, since you can just write a single stop and get that behavior.

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


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

Received on Tuesday, 1 October 2024 23:33:32 UTC