- From: Brian Manthos <brianman@microsoft.com>
- Date: Mon, 8 Aug 2011 17:55:46 +0000
- To: "L. David Baron" <dbaron@dbaron.org>, Tab Atkins Jr. <jackalmage@gmail.com>
- CC: "www-style@w3.org" <www-style@w3.org>
Tab: > Brian Manthos: >> L. David Baron: >>> when 'background-size' is 'auto auto' and the background image has >>> only one of an intrinsic width or height, and does not have an >>> intrinsic ratio. >> >> Example? > >Are you asking for an example of an image like that? > ><svg width=100> > ... ></svg> My retention for the intricacies of SVG sizing is weak, so I usually bug Aaron to double-check myself. But my loose recollection is that this applies... http://www.w3.org/TR/SVG/struct.html#SVGElementWidthAttribute # height = "<length>" # If the attribute is not specified, the effect is as if a value of '100%' were specified. And thus the image size is mapped to {100px, <height-of-the-background-positioning-area>} well-before background-size gets evaluated. <continuing> ... which also means that -- from the perspective of background-size -- the image *does* have both an intrinsic size and an intrinsic aspect ratio. So I still need an example of the creature that David asked for.
Received on Monday, 8 August 2011 17:56:26 UTC