- From: Brad Kemper via GitHub <noreply@w3.org>
- Date: Wed, 31 Dec 2025 16:29:47 +0000
- To: public-css-archive@w3.org
> Let’s assume border-color was listified, …-width and …-style were not.
That would not be intuitive at all to me, because that isn't how lists normally work in properties that are part of a shorthand.
> foo {
> border-width: 1ex;
> border-style: dotted none double;
> border-color: red, blue, green;
> }
> As an author, would you expect dots alternating between red, blue and green for the top dotted border? 🔴🔵🟢
No, because once I saw the commas, I would expect the other border properties to accept them too.
I think for what you are trying to accomplish, with colors alternating within a single border-style to apply to the constituent parts of that style, a functional notation would work better, and be more clear. Like maybe border-color: `alternate(red blue green)`. Then for `dotted` or `dashed` the color of each dot or dash would alternate between however many colors were in the function's list. For double, it would use the first three colors to paint the outside lines and the space between them (or only the outside lines if you only provide 2 colors). For solid it would only use the first color of the function.
--
GitHub Notification of comment by bradkemper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13044#issuecomment-3702475280 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 31 December 2025 16:29:48 UTC