W3C home > Mailing lists > Public > www-style@w3.org > May 2010

Re: suggestion: fixed-aspect-ratio CSS rule for block elements

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 6 May 2010 10:28:40 -0700
Message-ID: <z2rdd0fbad1005061028iae074aa8n16c1484776b46fd3@mail.gmail.com>
To: James Elmore <James.Elmore@cox.net>
Cc: Daniel Glazman <daniel.glazman@disruptive-innovations.com>, julien.cayzac@gmail.com, www-style@w3.org
On Thu, May 6, 2010 at 7:42 AM, James Elmore <James.Elmore@cox.net> wrote:
> This seems reasonable, but is #3 ALWAYS "width / height"? What if the writing and filling directions change? The text explaining this should have a warning that authors in other writing systems need to be careful not to expect these two directions to change if it is defined as always "width/height". Otherwise, if the order might change with writing / filling directions, the text needs to make that clear, also.

My initial thought is that it should always be width/height.  I prefer
making things explicit as much as possible, only doing writing-mode
dependent stuff when necessary.  But if it turns out that it's
necessary, we can figure something out.

> Another point -- the pair of integers could be specified as "width, height" or even "width height". And what if an author uses an integer (ddd.dd)? is that an error, or is the second number ignored, or is the ratio still used. SVG users would expect the numbers to be used, even if they were not integers. I hope CSS follows that path.

I prefer avoiding unnecessary punctuation whenever possible.  Using
the / to make it look like a fraction is clever, but probably too much
so.  My original proposal was to allow two space-separated <integer>s.
 Allowing a single <number> (which allows decimals) is also fine.

Does SVG allow a ratio to be specified with two non-integers?  If
that's the case, then sure, we should match that.  It shouldn't be a

Received on Thursday, 6 May 2010 17:29:42 UTC

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