- From: Helder Magalhães <helder.magalhaes@gmail.com>
- Date: Thu, 27 Jan 2011 10:28:26 +0000
- To: Simon Pieters <simonp@opera.com>
- Cc: Simon Fraser <smfr@me.com>, "www-style@w3.org" <www-style@w3.org>, Philip Jägenstedt <philipj@opera.com>, Leif Arne Storset <lstorset@opera.com>, "L. David Baron" <dbaron@dbaron.org>, Erik Dahlstrom <ed@opera.com>, www-svg@w3.org
Hi everyone, > Bitmaps in <img> and <object> traditionally behave as 'fill', while SVG does > not (even without preserveAspectRatio). "respect preserveAspectRatio" below > is supposed to mean "repsect the preserveAspectRatio rules in the SVG spec > even if that attribute is absent". Note that 'meet' is the default value for > preserveAspectRatio, which is like object-fit:contain. If no viewBox is > provided or can be synthesized, for <object> and <svg> the traditional > behavior is like object-fit:none; object-position:top left. > > See http://software.hixie.ch/utilities/js/live-dom-viewer/saved/807 > > Looking now, it seems that we still don't have interop in this area. IIRC, > Opera is compliant with the SVG spec. Chrome seems to always use 'fill' for > img and always cause an iframe-like effect for SVG in object. Could this be related with recent improvements? WebKit did nicely fix the annoying SVG bug 48462 [1] through it's underlying bug 10687 [2] in the latest few months. Anyway, I couldn't "force" it to work by no combination of "object, svg { overflow:hidden }". > Firefox is > more like Opera but disagrees with the no-viewBox case. I get a consistent result (in the remaining "SVG without viewBox in object" case, that is) between Firefox 4 nightly and Opera by adding "overflow:hidden;" to the img/object stylesheet in Firefox... In sum: could the overflow behavior be underspecified for these embedding cases? (SVG in image, SVG in object, inline SVG in HTML, etc.) I recall recent discussion on www-svg regarding at least the inline use-case. Cheers, Helder -- Helder M. A. Magalhães http://heldermagalhaes.com/ [1] https://bugs.webkit.org/show_bug.cgi?id=48462 [2] https://bugs.webkit.org/show_bug.cgi?id=10687
Received on Thursday, 27 January 2011 10:29:35 UTC