Re: [csswg-drafts] [css-borders] Allow multiple borders by listifying them (#13044)

> > For compat, border-width: 1px must continue to specify the total width. This is a non-negotiable requirement, as a lot of existing content depends on a box model with certain dimensions.
> 
> One last thought about this:
> 
> If `border-width` is the thing that determines list length, as I think it should, then you don't really have to worry about some other value cascading into it. Changing the border-width does typically change the dimensions of either the box's contents or the available space outside the box, and authors do change border widths all the time already, so there'd be no surprises from this approach.

That could actually work, as it doesn't have the compat issue I described. `border-width: 1px` would simply get you a single border, with your first color. Which seems okay.
But then you need a separate property for the total width… Otherwise there is no way to specify things like "N borders, all the same width" without also specifying their width, or to specify relative widths (e.g. "1px, 1fr, 1px").

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


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

Received on Tuesday, 6 January 2026 13:14:49 UTC