W3C home > Mailing lists > Public > www-style@w3.org > April 2014

[css-flexbox] percentage paddings, again

From: Christian Biesinger <cbiesinger@google.com>
Date: Wed, 16 Apr 2014 16:04:54 -0700
Message-ID: <CAPTJ0XGJt_kEdUZxub41HPLsOP81Q6iwvD12VVc7qO91CpP1Tg@mail.gmail.com>
To: www-style list <www-style@w3.org>
Cc: Ojan Vafai <ojan@chromium.org>
Hi all,

I'd like to get back to the discussion on whether padding-top/bottom
should resolve relative to width or height. The spec says right now:

"Percentage margins and paddings on flex items are always resolved
against their respective dimensions; unlike blocks, they do not always
resolve against the inline dimension of their containing block."

However, neither IE nor Chrome implement this right now (Firefox does):
http://jsfiddle.net/U5KJH/
(if the two boxes look the same, that part is not implemented)

I don't know of a use case for this difference; it is not clear why
flex items should be different from all other CSS boxes in this
respect. What's more,
https://code.google.com/p/chromium/issues/detail?id=229568#c7 has a
use case for not having this difference.

Considering that two out of three browsers don't implement this, any
chance to get the spec changed?

thanks!
-christian
Received on Wednesday, 16 April 2014 23:05:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 16 April 2014 23:05:23 UTC