Re: [csswg-drafts] [css-sizing-3] add ability to make the padding size include the border-width (#7770)

To get more info on use cases, I asked a designer I know working on a popular design system and this is what they had to say:

> Interesting... We do use calculations for consistent form control heights, which incidentally accomplishes what this issue is asking for.
> I do see the use case, though an inset `box-shadow` seems to cover this concept already from my POV. If I had, say, a typically borderless card, but I wanted to emphasize it with a border and keep all other proportions the same, I'd turn to `box-shadow`. 

At first when this issue came up, I (alongside many other participants) were puzzled about use cases, but this is something I’ve encountered many times as well, and indeed, ideally people should not have to resort to hacks like `box-shadow`. 

If use cases are similar to this one, it does seem like the border width should be subtracted from the padding, and not the other way around.

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


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

Received on Tuesday, 11 June 2024 15:34:41 UTC