Closed Bug 96804 Opened 23 years ago Closed 23 years ago

<embed>+width attribute overrides max-width style

Categories

(Core :: Layout, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: philanderton, Assigned: serhunt)

References

Details

Attachments

(2 files)

See attachment. A <div> with style="max-width:50%" contains an <object> element and an <embed> element, both with width=100%. The <object> element displays with a width of 50%, as expected, whereas the <embed> element uses the whole window width.
Attached file HTML testcase
Reassigning to av.
Assignee: karnaze → av
Attached patch One-line patchSplinter Review
I've just attached a patch which I believe fixes the problem.
Blocks: html4.01
Adding patch, review keywords. Reporter: please follow the procedure outlined at http://www.mozilla.org/hacking/ to help get this patch reviewed and checked in.
Keywords: patch, review
Marc, what do you think?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Well, it looks correct - objectFrames *are* replaced elements. Has anybody tested this (I'm guessing that the contributor did, but please document tests / results).
I have indeed tested it - against the attached test case and a few more realistic examples. As you say, objectFrames are replaced elements, so setting isReplaced must be the right thing to do. I don't see why <embed> should be any different from <object> or <applet> in this respect.
r=peterl
Comment on attachment 48019 [details] [diff] [review] One-line patch sr=attinasi
Attachment #48019 - Flags: superreview+
Checked in. Thanks everybody.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: