W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2016

[csswg-drafts] [css-flexbox] Flex basis and box-sizing

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 12 Jul 2016 18:38:52 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-165149810-1468348730-sysbot+gh@w3.org>
fantasai has just created a new issue for 

== [css-flexbox] Flex basis and box-sizing ==
I noticed a problem while working with flexbox last week:
<div class="across">
    <div style="flex: 2"></div>

If we add padding or borders, the flex items are not actually 
distributed at thirds, even if box-sizing is set to border-box.

It's not possible to get things to align unless you do some fancy math
 with the padding and borders... the avoidance of which is exactly the
 point of having the box-sizing property.

I'm somewhat afraid it's not possible to fix this anymore. :( But for 
sure it's got to be annoying for authors...

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/316 using your GitHub 
Received on Tuesday, 12 July 2016 18:38:59 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:00 UTC