Closed
Bug 321531
Opened 20 years ago
Closed 17 years ago
SVG in <object> doesn't size right
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ian, Unassigned)
References
Details
Attachments
(1 file)
607 bytes,
text/html
|
Details |
<object> elements containing SVG are not sizing correctly. They're defaulting to 300x150 instead of taking the intrinsic size from the image.
TESTCASES:
http://www.hixie.ch/tests/adhoc/css/box/replaced/intrinsic/svg/
SPECS:
http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height
http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width
http://www.w3.org/TR/SVGMobile12/coords.html#IntrinsicSizing
See also bug 80713.
![]() |
||
Comment 1•20 years ago
|
||
Making outer <svg> a replaced element is bug 288276.
Comment 2•19 years ago
|
||
scaling up and down demonstrates issue
jonathan, your "reduced test case" and scaling has nothing to do with this bug. I think you don't understand the meaning of the issue Hixie mentioned.
In my opinion, this bug is a very important one. Its like you would have to tell every (!) single embeded jpg in <img> tag a width and height attribute!
terrible.
Hixie's testcases are fixed on trunk; I think jwatt fixed this as part of bug 294086.
![]() |
||
Comment 5•17 years ago
|
||
Hmm, two different Jonathan's, and the Jonathan who attached the testcase isn't CC'ed and likely didn't see comment 3. Confusing. :-)
Anyways, yes, Hixie's testcases were fixed as part of bug 294086. The fix will be in Firefox 3.
Updated•17 years ago
|
Flags: in-testsuite?
![]() |
||
Comment 6•17 years ago
|
||
Tons of reftests were added as part of bug 294086. See the object--* tests in:
http://lxr.mozilla.org/seamonkey/source/layout/reftests/svg/sizing/
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•