Re: [css-shapes-2] Auto-height and shapes sizing constraints

On Tue, Sep 3, 2013 at 4:15 PM, François REMY
<francois.remy.dev@outlook.com> wrote:
> In the current Shapes Level 2 spec, there's a paragraph that says:
>
>   When a shape-inside has a definite size (no percentages used in the shape's definition) an auto-sized element should use the shape as a constraint in determining its maximum size.
>
>
>
> I propose to change that to
>
>    An auto-sized element should use the shape as a constraint in determining its maximum size. In the case of auto-sized elements, values expressed as percentages in the auto-sized direction resolve to 0px to avoid cyclic dependency.
>
>
>
> because
>
>    (1) 0% still makes sense in all cases and
>    (2) you may want to use percentages for (fixed) width and px values for (auto) height and still get the expected behavior
>    (3) otherwise what happens when the percentages are used in such a way that the shape doesn't grow when the element grows is not defined in the spec (ie: the element should become infinitely high)

Resolving percentages to 0px is hostile and unusual.  Typically they
resolve to 'auto' or something equivalent for the property.

~TJ

Received on Wednesday, 4 September 2013 03:26:07 UTC