Re: [css3-sizing] fill-available and floats
Kang-Hao (Kenny) Lu <kanghaol <at> oupeng.com>
2012-08-15 07:30:16 GMT
(12/08/01 18:10), François REMY wrote:
> My point was to say it should react the same way as auto does on a DIV.
> If the way DIVs react to floats depends on other properties,
> fill-available should probably do the same, to reuse the existing
Why? You didn't provide a reason why 'fill-available' should reuse the
existing algorithm. Duplicating the keyword for the same behavior is
obviously not what we want to do here. In other words, in general, the
bigger the difference between the behavior of 'auto' and
'fill-available' the more things Web developers can do.
> If that's too complex or undesirable, I have no strong opinion on this
Duplicating the keyword wouldn't be complex. On the contrary, it's
pretty trivial. However, it might indeed not be what authors want.
I don't (yet) have an opinion to fantasai's question, but there are a
bunch of questions that are similar:
1. Should 'fill-available' on a 'inline-block' fill its containing block
or fill the remaining space after other contents in the same line have
been placed (assuming the break before the 'inline-block' is forbidden)?
2. Should 'fill-available' on a 'inline-block' fill its containing block
or the line box, which is smaller in the presence of a float.
Existing implementations (Chrome 23, Firefox 14) treat 'fill-available'
like 'auto' in these examples. It seems that doing the other way around