Closed
Bug 85516
Opened 24 years ago
Closed 21 years ago
img & iframe tags sized by % disappear when in div, center, and table=>tr=>td
Categories
(Core :: DOM: HTML Parser, defect)
Core
DOM: HTML Parser
Tracking
()
mozilla1.1alpha
People
(Reporter: basil, Assigned: attinasi)
References
()
Details
(Keywords: compat)
Attachments
(9 files)
There's some icky code on this page, but it loads correctly in IE 5.0, 5.5 and
NS 4.61. In Moz 0.9.1 and 0.9, the <img src="/images/main.jpg"...> tag does not
load.
After some tinkering with the HTML, the <img> loads correctly only after
removing both the <div> and <center> tags, but not either alone. (BTW, I have
nothing to do with this site, so I'm not able to fix the page -- as much as I'd
like to.)
I'm going to try and hack together a test case.
Comment 1•24 years ago
|
||
Confirming issue.
Status: UNCONFIRMED → NEW
Component: Layout → ImageLib
Ever confirmed: true
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
This problem occurs when the image is scaled (by percent) and is contained in a
center tag. See reduce test case.
Comment 4•24 years ago
|
||
I see this with mozilla 2001062204 on Windows 2k with both the first image in
the testcase and at the URL referenced. Some investigation shows the problem is
much larger. Nesting the percent scaled image in a tag causes it to disappear. I
tried putting the scaled image in a div tag and it vanished. Same when testing
with a p tag. I suspect this bug is a duplicate, but most all the scaling bugs
have been (perhaps mistakenly) Linux only. Perhaps bug 85016, bug 81477, and bug
84359 are duplicates of this one (because this one has more information and a
testcase)?
Comment 5•24 years ago
|
||
Comment 6•24 years ago
|
||
Based on the new testcase that demonstrates that tag nesting is causing the
problems, I suspect that this problem is in layout and not libpr0n.
it's also not only images, it's iframes too (and i'm sure other elements also) -
replace the images with iframes and you'll get only a line... so the component
and sumaary should be changed and severity set to major...
Comment 8•24 years ago
|
||
Chnaging component and severity
Severity: normal → major
Component: ImageLib → Parser
Reporter | ||
Comment 9•24 years ago
|
||
Reporter | ||
Comment 10•24 years ago
|
||
BTW, has anyone looked at the testcase in IE 5.5? The img and iframe tags nested
in a td in a tr in a table tag don't load in IE 5.5, either. When I put a
doctype tag on this testcase, it checks out clean for html 4.0 at the html
validator on W3C.org, so it's not b/c of invalid html markup that it's breaking
on IE.
I don't know if this is really relevant or not, but I thought I would note it FYI.
Reporter | ||
Updated•24 years ago
|
Summary: <center> tags used in conjunction with <div> tags cause <img> load to fail → img & iframe tags sized by % disappear when in div, center, and table=>tr=>td
Reporter | ||
Comment 11•24 years ago
|
||
Changed summary info to more accurately describe the issue.
Comment 12•24 years ago
|
||
Summary was "<center> tags used in conjunction with <div> tags cause <img> load
to fail".
Anyone seen this on another platform? I find it hard to believe this is windows
only.
Comment 13•24 years ago
|
||
*** Bug 90537 has been marked as a duplicate of this bug. ***
Comment 14•24 years ago
|
||
The dup bug 90537 has testcases that are HTML 4.01 Transitional validated. It
has been seen on Linux, therefore changing to All/All
BTW, I believe bug 88021 may be another dup of this bug.
OS: Windows 98 → All
Hardware: PC → All
Comment 15•24 years ago
|
||
Comment 16•24 years ago
|
||
Reporter | ||
Comment 17•24 years ago
|
||
Reporter | ||
Comment 18•24 years ago
|
||
On the updated case above that the images load on first load, then disappear on
reload. This behavior does not occur on the test case using CSS. This behavior
is seen in 2001080116-trunk Win32 builds.
Assignee | ||
Comment 20•24 years ago
|
||
Dup of topembed bug 85016 (and there are other dups too, I think, any help in
dupin' 'em is appreciated)
*** This bug has been marked as a duplicate of 85016 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Comment 21•23 years ago
|
||
This bug was marked as a dup. of 85016, and I think it was, but the
problem still manifests itself in more complex nested tables where each
table is inheriting it's size as a percentage of it's parent containing
element.
I've attached a (rather complicated Im afraid) testcase from a Web-App I
am creating..
Bear in mind that this page is rendered correctly in IE on a Macintosh
(well, almost), but not IE on Windows.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Comment 22•23 years ago
|
||
Expected results: Leftmost IFRAME should fill to around 75% of screen with
'shadowed' borders (this is an aesthetic affect)
Actual results: Nested IFRAMES to not properly aquire their percentage heights
form their parent elements that are also defined as percentage sizes of thier
parent elements.
Updated•23 years ago
|
Severity: major → normal
Target Milestone: --- → mozilla1.1
Comment 23•23 years ago
|
||
The document is an example of the bug, where elements iside TDs fail to obey
relative heights. If you change the source according to the comment and put a
style tag to a TD tp specify it's height, the iframes behave correctly.
Comment 24•23 years ago
|
||
Others have reported that setting the height of the TD to 100% would deal with
this problem but that didn't work here. Remove the CENTER tags and it then
works correctly. This page displays fine as is in IE.
Search for the IFRAME and note comment before it.
![]() |
||
Comment 25•21 years ago
|
||
OK, as originally filed this bug is a duplicate of bug 88035 (well, other way
around, but the other is the place these issues have been dupped to).
Then there followed a whole slew of comments that had nothing to do with this
bug and everything to do with bug 10212.
So I'm marking this duplicate, since we have other bugs covering all the issues
mentioned herein.
*** This bug has been marked as a duplicate of 88035 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago → 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•