Closed
Bug 96804
Opened 23 years ago
Closed 23 years ago
<embed>+width attribute overrides max-width style
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: philanderton, Assigned: serhunt)
References
Details
Attachments
(2 files)
399 bytes,
text/html
|
Details | |
798 bytes,
patch
|
attinasi
:
superreview+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 3•23 years ago
|
||
Reporter | ||
Comment 4•23 years ago
|
||
I've just attached a patch which I believe fixes the problem.
Comment 5•23 years ago
|
||
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.
Comment 7•23 years ago
|
||
Well, it looks correct - objectFrames *are* replaced elements. Has anybody
tested this (I'm guessing that the contributor did, but please document tests /
results).
Reporter | ||
Comment 8•23 years ago
|
||
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.
Comment 9•23 years ago
|
||
r=peterl
Comment 10•23 years ago
|
||
Comment on attachment 48019 [details] [diff] [review]
One-line patch
sr=attinasi
Attachment #48019 -
Flags: superreview+
Assignee | ||
Comment 11•23 years ago
|
||
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.
Description
•