- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 8 Aug 2011 13:14:12 -0700
- 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 UTC