[Webkit-unassigned] [Bug 5793] HTML OBJECT without width/height attributes doesn't honor the size of the image

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 27 10:52:30 PDT 2010


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





--- Comment #21 from Jeff Schiller <jeffschiller at google.com>  2010-10-27 10:52:28 PST ---
I applied your patch and tried the attached test case.  It failed to properly render either of the three SVG images.

In the first case (blue circle), since the SVG has no specified width/height, they default to 100%/100%.  What other browser do (Firefox, Opera) is set the width to the full width of the browser window and the height to 150px.  I'm not sure if this is correct by CSS sizing rules, but it seems consistent across those two browsers.

In the second case (green circle), the SVG has a specific size of width="500" and height="500".  What other browsers do is set the object frame to be the size of the image (500px by 500px).

In the third case, (purple circle), the SVG has a specific size of width="500px" and height="500px".  All browsers treat this case identically to the second case.

You can right-click on the object frames and view source of each one to see the base64-decoded SVG doc (I made the data: URIs so that I can just attach one test case and everyone can see it without downloading files). 

I think fixing this bug should at least fix the second and third cases, since the SVG has an explicit size.

-- 
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