W3C home > Mailing lists > Public > www-style@w3.org > November 2009

[css3-background] ‘background-size’ and SVG images

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Tue, 17 Nov 2009 17:16:45 +0200
To: www-style@w3.org
Message-Id: <200911171616.45914.Dr.O.Hoffmann@gmx.de>

this comment is about

Due to another discussion I tried to understand the
behaviour of background-size especially for SVG images as background images.

I could not derive the intended behaviour if the SVG image contains
information within the preserveAspectRatio attribute such as 'none' or
for example 'xMidYMid slice' (can be pretty useful for complex patterns of
finite size, for example for a Penrose pattern, obviously the intention of
the author is, to cut off parts not fitting to the aspect ratio of the
viewport instead of meeting the viewport with areas without a pattern
specified), if such an image is used in combination with background-size.
I can image, how it works without background-size, but with seems to
provide even more possibilities (and complications as well).

Does the information from preserveAspectRatio take precedence, if

Received on Tuesday, 17 November 2009 15:19:51 UTC

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