Re: [CSS21] Background-image: intrinsic ratio of SVG images

On Monday 2011-11-14 13:55 -0800, Tab Atkins Jr. wrote:
> 2011/11/14 "GΓ©rard Talbot" <www-style@gtalbot.org>:
> > Hello all,
> >
> > Section 14.2.1 background-image
> > http://www.w3.org/TR/CSS21/colors.html#propdef-background-image
> >
> > states
> >
> > "
> > If the image has no intrinsic dimensions and has an intrinsic ratio the
> > dimensions must be assumed to be the largest dimensions at that ratio such
> > that neither dimension exceeds the dimensions of the rectangle that
> > establishes the coordinate system for the 'background-position' property.
> > "
> >
> > Now, let's assume that a SVG image (say, filenamed as some-svg-image.svg)
> > is used as background-image and its code is:
> >
> > some-svg-image.svg:
> >
> > <svg xmlns="http://www.w3.org/2000/svg">
> >  <rect width="100%" height="100%" fill="green"/>
> > </svg>
> >
> > Does such SVG image has an intrinsic ratio?
> >
> > I believe it does have intrinsic ratio: an 1 to 1 ratio. Am I wrong?
> 
> Yup, you're wrong.  ^_^  Percentages do not count as intrinsic dimensions.

And for a second reason:  it's the dimensions on the svg element
that would count for intrinsic dimensions; dimensions on things
inside of it would never count.

-David

-- 
π„ž   L. David Baron                         http://dbaron.org/   𝄂
𝄒   Mozilla                           http://www.mozilla.org/   𝄂

Received on Monday, 14 November 2011 22:22:11 UTC