W3C home > Mailing lists > Public > www-style@w3.org > August 2011

Re: [css3-background] 'background-size: auto auto' and images with intrinsic size in one dimension

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 8 Aug 2011 13:14:12 -0700
Message-ID: <CAAWBYDC8yoFyy0jOh=Kcka_R-8CyH8Xi5+RvLomCNjmvmrNLtA@mail.gmail.com>
To: Brian Manthos <brianman@microsoft.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, "Boris Zbarsky (bzbarsky@MIT.EDU)" <bzbarsky@mit.edu>, "www-style@w3.org" <www-style@w3.org>
On Mon, Aug 8, 2011 at 1:03 PM, Brian Manthos <brianman@microsoft.com> wrote:
> I'm interpreting the language "they indicate a portion of the viewport that is actually covered by image data" to include the meaning "resolve percentage widths and heights against the viewport to establish the size of 'image data' (when used for purposes such as background-image)".
>
> For right or wrong, I believe that's roughly how it was interpreted or IE9's implementation.

You are correct, that *is* what that line means.  What you're
misunderstanding is that you first have to size the viewport in order
to resolve percentages against the viewport.  Sizing the viewport is
what CSS does when it asks for the image's intrinsic dimensions.

(In other words, you're conflating the notion of sizing the root <svg>
element and sizing the image/viewport.  In directly-embedded SVG, the
two are the same.  In embedded-by-reference SVG, like SVG-in-<img>,
they're not.)

~TJ
Received on Monday, 8 August 2011 20:15:19 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:43 GMT