Closed
Bug 186942
Opened 22 years ago
Closed 22 years ago
renewnyc.com - Images are cropped strangely inside sized div
Categories
(Tech Evangelism Graveyard :: English US, defect)
Tech Evangelism Graveyard
English US
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 196870
People
(Reporter: bryanck, Assigned: susiew)
References
()
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212
This page, of 7 World Trade Center design proposals, has 7 selectable images for
each proposal. Three of the images to the right show up properly, but the 4
leftmost images only show a portion of the image (a thin vertical slice).
The site displays as expected in Internet Explorer.
Reproducible: Always
Steps to Reproduce:
1. Browse to
http://www.renewnyc.com/plan_des_dev/wtc_site/new_design_plans/default.asp
Actual Results:
The images won't display properly.
Expected Results:
All 7 images should display properly.
If a 10px square div (inside a table cell) contains 77px square image with 5px
hspace/vspace, should the result be 10px, 77px, or 87px?
Whatever the answer, Mozilla is displaying this site incorrectly. It is applying
center vertical alignment to the div first, then drawing the image starting in
the top left corner of the div and cropping the image when it reaches the edge
of the cell.
Here's the relevant code snippets:
.thumbdiv { width:10; height:10; filter:Shadow(Color=#CACACA, Direction=120) }
<table border="0" cellspacing="0" cellpadding="4" background="" width="100%">
<tr>
<td width="130" align="right" >
<div class="thumbdiv" ><a href="firm_a/default.asp"
onMouseOver="MM_swapImage('a_up1','','/images/plan_des_images/thumb_a_over.jpg',1)"
onMouseOut="MM_swapImgRestore()"target="a"><img
src="/images/plan_des_images/thumb_a_up.jpg" width="77" height="77" border="0"
vspace="5" hspace="5" name="a_up1" alt="Foster and Partners "></a></div>
</td>
Assignee: susiew → dbaron
Severity: normal → major
Status: UNCONFIRMED → NEW
Component: US General → Style System
Ever confirmed: true
OS: Windows XP → All
Product: Tech Evangelism → Browser
QA Contact: zach → ian
Hardware: PC → All
Summary: Images don't display in their entirety → renewnyc.com - Images are cropped strangely inside sized div
Version: unspecified → Trunk
Illustration of the problem with a user stylesheet drawing colored 1px borders
on each container.
Why is it our problem if WinIE doesn't support 'height' and 'width' correctly?
returning to original component
Assignee: dbaron → susiew
Component: Style System → US General
Product: Browser → Tech Evangelism
QA Contact: ian → zach
Version: Trunk → unspecified
This testcase has been checked by BBEdit, Tidy, and validator.w3.org
DBaron and BZbarsky have both said that MSIE and RenewNYC are the ones at fault
here. I would really appreciate it if one of them, or someone else with a
strong understanding of box models, would EXPLAIN IN DETAIL why Mozilla's
cropping of my testcase (and renewnyc) is in fact the correct thing to do.
After being pointed to CSS2 overflow, I understand that Mozilla is performing
the correct layout. Mostly.
I was right that the images should not be cropped at the cell edges. They should
be allowed to overflow and display fully.
*** This bug has been marked as a duplicate of 196870 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Updated•10 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•