Re: [css-ui-3] box-sizing: padding-box

On June 13, 2015 9:37:58 PM GMT+02:00, Patrick Dark <www-style.at.w3.org@patrick.dark.name> wrote:
>
>This use case can be accommodated by:
>(A) removing |box-sizing: padding-box| and |width: 100%| from the |div|
>element.
>(B) applying |width: calc(100% + 25px)| to the |div:hover|
>element/pseudo-class.

Using calc to replace box-sizing is possible, and that's not specific to the padding-box value. But using box-sizing is supposed to make code easier to read understand and maintain.

So I agree we can drop padding-box and not lose functionality, but we lose expressivity.
----
- Florian Rivoal
Sent from my phone. Please excuse my brevity.

Received on Saturday, 13 June 2015 20:01:09 UTC