Closed
Bug 191389
Opened 22 years ago
Closed 16 years ago
img with 100% height does not fill cell
Categories
(Core :: Layout: Tables, defect, P3)
Tracking
()
RESOLVED
WONTFIX
Future
People
(Reporter: mat, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: testcase)
Attachments
(3 files, 2 obsolete files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030122
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030122
Images with 100% height do not fill table cells vertically if the cell is in a
row after one containing a 100% height image. I know it sounds strange but check
the demonstration URL.
Reproducible: Always
Steps to Reproduce:
1. Make a table with two or more rows
2. Put images with height="100%" attributes in cells in a number of rows
3. Put something else (such as text) in a cell in the same row as the image to
give it something to scale to.
4. Look at it in the browser.
5. Scratch your head.
Actual Results:
The images in subsequent rows had space above and below them.
Expected Results:
The images should of had no space above and below them, they should of been the
same as the images on the first row.
I've tried to produce a demonstration URL that shows, in a much simplified form,
how this bug confounds a quite common way of scaling pretty borders around a table.
Reporter | ||
Comment 2•22 years ago
|
||
In fact these screen shots show two things:
a. That display looks different when the page is first opened and when I press
refresh.
b. The effect of adding style="height: 100%;" to the <td> tags of the offending
cells.
The shots are:
1. Original URL when first opened in Mozilla.
2. Original URL when refresh is pressed in Mozilla.
3. http://www.btinternet.com/~matthew.haas/mozbug/cell.height.html in Mozilla.
The same as the page at the original URL but with style="height: 100%;" added
to the <td> tags.
4. The new URL in IE6. Curses! IE succeeds where Mozilla fails.
Comment 3•22 years ago
|
||
testcase exhibits the bug with linux trunk build 20030131
the first image actually has 100% hieght and the second does not (only 1 pixel)
Comment 4•22 years ago
|
||
> with style="height: 100%;" added to the <td> tags.
100% of what?
marking NEW
Reporter | ||
Comment 5•22 years ago
|
||
100% of available height, it is required to stretch images vertically in table
cells in IE6 as you will see if you compare the screen shots. I don't know if IE
is standards compliant in this respect but it's worth a try in Mozilla too.
Updated•22 years ago
|
Priority: -- → P3
Target Milestone: --- → Future
Comment 6•22 years ago
|
||
I think the test case I have is the same problem. I have attached it.
If someone doesn't think it is the same, then I will open a separate bug.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031210
Updated•20 years ago
|
Attachment #138587 -
Attachment is obsolete: true
Attachment #113268 -
Attachment is obsolete: true
IE7 does not show the image at all
Opera does what we do
webkit stretches
and the CSS21 spec would imply that the height of the image is auto like we do
=> my recommendation: WONTFIX
Comment 10•16 years ago
|
||
since no opposition I am closing this
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•