[Webkit-unassigned] [Bug 16167] SVGs with width and height 100% fail to render when used as <img> or CSS image

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 22 00:56:10 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=16167


Nikolas Zimmermann <zimmermann at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zimmermann at kde.org




--- Comment #8 from Nikolas Zimmermann <zimmermann at kde.org>  2011-06-22 00:56:10 PST ---
(In reply to comment #0)
> <rdar://problem/5616982>
> 
> The attached html uses an SVG with width and height 100% as an <img>. The <img> gets the appropriate "default" size of 300 x 150, but the SVG never draws inside the space. This default size may be a problem too -- certainly it differs from Opera. But it seems like a more pressing problem that SVG doesn't render at all.

Heh I hope you did not mean that the square is black when you said "it doesn't render at all".
The ballon.svg has a failure in it: It uses the non-existant <def> element. Inside that block no renderer is created at all -- Opera just ignores this, which is wrong.

If you do s/def/defs/ the balloon.svg (standalone) looks and animates just as in Opera.

If you embed balloon.svg (with the s/def/defs/ fix) in your test html document, you'll now see a  turquoise     part of the image. You will _not_ see the balloon.svg scaled to fit in the <img>, this would be wrong. Compare to Opera.

Anyhow, I'm testing this with my local SVG-as-image-rewrite-patch, but it was correct before as well.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list