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

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

From: Lea Verou <lea@verou.me>
Date: Wed, 19 Apr 2017 15:38:28 +0900
Cc: Simon Sapin <simon.sapin@exyr.org>
To: www-style list <www-style@w3.org>
Message-Id: <6C6C0441-4440-44EE-9115-32DE483A6608@verou.me>
> 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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:07 UTC