Re: [css-images] Editorial: clarify the default sizing algorithm

> Hi,
> 
> As written in the current ED, the default sizing algorithm (§5.3.1) 
> contains:
> 
> > If the specified size has no constraints:
> > 1. If the object has an intrinsic height or width, its size is
> > resolved as if its intrinsic size were given as the specified size.
> > 2. Otherwise, its size is resolved as a contain constraint against
> > the default object size.
> 
> 1 and 2 both invoke sub-algorithms, but fall into specific cases of 
> these algorithms. I think the quoted text would be more clearly written as:
> 
> > If the specified size has no constraints, each dimension of the
> > concrete object size is taken from the intrinsic dimensions if that
> > intrinsic dimension is given, from the default object size
> > otherwise.
> 
> -- 
> Simon Sapin

This is not equivalent: Your wording is not equivalent to the original, since it resolves dimensions separately, ignoring any intrinsic aspect ratio.

Lea Verou ✿ http://lea.verou.me ✿ @leaverou

Received on Wednesday, 19 April 2017 06:39:02 UTC