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)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ian, Unassigned)

References

Details

Attachments

(1 file)

<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.
Depends on: 70978
Making outer <svg> a replaced element is bug 288276.
Attached file reduced test case
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.
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.
Status: NEW → RESOLVED
Closed: 17 years ago
Depends on: 294086
Resolution: --- → FIXED
Flags: in-testsuite?
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.

Attachment

General

Created:
Updated:
Size: