Re: Aspect ratios in SVG: Numbers or integers?

On May 7, 2010, at 12:43 , Tab Atkins Jr. wrote:

> On Fri, May 7, 2010 at 11:52 AM, Simon Fraser <> wrote:
>> We have aspect-ratio in media queries:
>> <>
>> It would be nice if there were some consistency.
> Right, I definitely support allowing a single number defining the
> ratio, just as MQ does, precisely for consistency on that front.  But
> it's not very easy to use - I don't think most authors will
> intuitively recognize that 1.77 corresponds to 16:9 - so I'd also like
> a two-number version.  

I'm lost.  aspect-ratio is documented in CSS3 as a ratio, which is a two-integer rational number (for an integer, you even have to say /1):

The <ratio> value is a positive (not zero or negative) <integer> followed by optional whitespace, followed by a solidus (/), followed by optional whitespace, followed by a positive <integer>.

> The question is just if we only need integers,
> or if we need numbers for intellectual-compat.
> ~TJ

David Singer
Multimedia and Software Standards, Apple Inc.

Received on Friday, 7 May 2010 20:29:43 UTC