Closed Bug 69270 Opened 24 years ago Closed 21 years ago

images incl with object tag don't scale using percentage values

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME
mozilla1.2alpha

People

(Reporter: chris, Assigned: attinasi)

Details

(Keywords: testcase)

Attachments

(1 file)

If I include an image on a page using the object tag, and set the width to 10%, 
it will still show up at it's normal size.

<object type="image/gif"
        data="http://www.mozilla.org/images/mozilla-banner.gif"
        width="10%">Mozilla.org</object>
Attached file Test Case
Take a look at: http://www.w3.org/TR/html4/struct/objects.html#img-wh


--------------------------------------------------------------------------------
Note that lengths expressed as percentages are based on the horizontal or
vertical space currently available, not on the natural size of the image,
object, or applet.
--------------------------------------------------------------------------------
So it should be 10% of the available space, not 10% of the image width but that
is ignored. Also note that height doesn't work, same problem!
I never said it had to do anything with scaling to 10% of the image width. I 
know how it should work...and the image does NOT scale to 10% of 
the /available/ width.  The image does not scale at all.  You can resize the 
window horizontally for the test case and the image will not change size at all.
Correct, but just to be sure.
Confirmed
Platform: PC
OS: Windows 98
Mozilla Build: 2001022007

Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Reassigning to attinasi and marking m1.0.
Assignee: karnaze → attinasi
Target Milestone: --- → mozilla1.0
NTS: object frame when it acts like an image problem...
Status: NEW → ASSIGNED
Priority: -- → P3
Should this not include all objects not just images? Would it not be correct to
assume that an html object should take up 10% of the space avaible? Should
applet take 10% of available space?
Riscky, you are correct, in that any object included with the object tag should 
obey a percentage size.  The current problem is that when encountering an 
Object tag, Mozilla behaves differently depending on the type of object 
included.  Some things work right, many don't, this bug deals with one specific 
case.  I have also filed several closely related bugs you may be interested in:

bug 70972 - Object tag includes do not respect CSS width and height.
bug 70976 - Embeded OBJECT's should use natural size unless overriden.
bug 70978 - An OBJECT scaled using width /OR/ height should maintain 
perspective.
Target Milestone: mozilla1.0 → mozilla1.2
This has been fixed for a good long time now....
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: