W3C home > Mailing lists > Public > www-style@w3.org > June 2015

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

From: Florian Rivoal <florian@rivoal.net>
Date: Sat, 13 Jun 2015 22:00:34 +0200
To: Patrick Dark <www-style.at.w3.org@patrick.dark.name>
CC: "Brad Kemper <brad.kemper@gmail.com>; www-style@w3.org" <www-style@w3.org>
Message-ID: <95608812-E2A6-4E81-BD27-8BCC9EC22DEC@rivoal.net>


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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC