Re: [csswg-drafts] [css-backgrounds-4][css-borders-4] Should initial value of border-color be sensitive to border-area? (#10907)

I'm weakly against this; I agree with @Loirooriol that I wouldn't expect 'background' to effect 'border', and with @jsnkuhn that we don't do a similar thing with 'text' and 'color' either, so it would be odd to do it just for this case.  It also would feel weird that border styles which *do* show the background underneath them, like dashed or dotted, would also become invisible unless you remembered to manually set the color.

The saved effort also seems absolutely minimal.  In order to set up a border area, you *already* have to set both the border width *and* the border style (since the initial value of 'border-style' is 'none', which suppresses the border entirely), so you're probably using the 'border' shorthand anyway. Setting the color to transparent at the same time is no effort, just `border: 5px solid transparent;` vs `border: 5px solid;`.

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


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

Received on Thursday, 7 November 2024 21:25:27 UTC