vertical-align: set on anchor crops an image within it

RESOLVED DUPLICATE of bug 118501

Status

()

Core
Layout: Tables
P3
normal
RESOLVED DUPLICATE of bug 118501
16 years ago
7 years ago

People

(Reporter: mozilla, Unassigned)

Tracking

({css1, testcase})

Trunk
Future
x86
All
css1, testcase
Points:
---
Bug Flags:
in-testsuite ?

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [DUPEME][CSS1-5.4.4], URL)

Attachments

(3 attachments, 1 obsolete attachment)

(Reporter)

Description

16 years ago
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221
BuildID:    2001122108

The image is not displayed properly. Only a small part is displayed
and that part also shown outside the table. Depends on vertical-align
being set on <A> tag.

Image displays improperly tested on Linux (0.96 & 0.97) and on Windows
(0.96).

Image displays correctly on Netscape 4.7x, Konqueror 2.1.1, and IE 5.1.

Reproducible: Always
Steps to Reproduce:
1.View page given with Mozilla


Actual Results:  Image not displayed properly/fully.

Expected Results:  Image should have been displayed.

See URL given above and corresponding style sheet.
All pages above pass http://validator.w3.org

Comment 1

16 years ago
Created attachment 63097 [details]
Testcase

Comment 2

16 years ago
Confirming and reasssigning to HTMLTables.
Assignee: attinasi → karnaze
Status: UNCONFIRMED → NEW
Component: Layout → HTMLTables
Ever confirmed: true
Keywords: testcase
QA Contact: petersen → amar

Comment 3

16 years ago
Temporarily moving to future until a milestone can be assigned. 
Status: NEW → ASSIGNED
Target Milestone: --- → Future

Comment 4

16 years ago
this can be re-worked around by attaching the align to the image instead of the 
anchor.  this is a dupe of another bug which i cannot seem to find yet right 
now.
Summary: Image cropped with vertical-align on anchor tag in table → align on anchor causes bug. Image cropped with vertical-align on anchor tag in table
Whiteboard: [DUPME]
Summary: align on anchor causes bug. Image cropped with vertical-align on anchor tag in table → vertical-align: set on anchor crops an image within it
Whiteboard: [DUPME] → [DUPEME][CSS1-5.4.4]

Comment 5

15 years ago
*** Bug 163844 has been marked as a duplicate of this bug. ***

Comment 6

15 years ago
mass reassign to default owner
Assignee: karnaze → table
Status: ASSIGNED → NEW
QA Contact: amar → madhur
Target Milestone: Future → ---

Updated

14 years ago
Priority: -- → P3
Target Milestone: --- → Future

Comment 7

13 years ago
*** Bug 87767 has been marked as a duplicate of this bug. ***

Comment 8

13 years ago
wfm winxp 2004080708

Mats is that really wfm or do I overlook something?

Comment 9

13 years ago
I think that the top of "XXX" should be aligned with the top of the image,
both aligned at the top of the cell which is high enough to fit its contents.
I think there is a Block/Inline bug somewhere on the align issue (bug 118501?)
Depends on: 118501
Well, after reading the spec, I now think that "XXX" should stay on the baseline.
http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align

That is, the testcase should render exactly as if the 'vertical-align' had not
been specified...

Comment 11

13 years ago
*** Bug 269953 has been marked as a duplicate of this bug. ***

Updated

13 years ago
Keywords: css1

Comment 12

10 years ago
Created attachment 290614 [details]
testcase without table and anchor

this happens also with generic div and span elements.

Comment 13

9 years ago
this did not work before 1.9 but does now.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Flags: in-testsuite?
Resolution: --- → WORKSFORME
Resolution: WORKSFORME → DUPLICATE
Duplicate of bug: 118501
Bernd, is testcase 2 correct in saying that the image should be inside the box in both cases? If that's true, then it still isn't passing for me on 3.0.9. The image bleeds through the top box. On the other hand, given the bug title, I would be inclined to at least say that it's a different bug if it is indeed one.
bug 118509 was fixed in 3.1a1, i.e., after 3.0.*.
Created attachment 378382 [details]
bug116762-reftests
Attachment #378382 - Flags: review?(dbaron)
Created attachment 378383 [details] [diff] [review]
bug116762-reftests
Attachment #378382 - Attachment is obsolete: true
Attachment #378383 - Flags: review?(dbaron)
Attachment #378382 - Flags: review?(dbaron)
Did you test that your test fails before the bug was fixed?  Did you check that it passes in the reftest harness?
Comment on attachment 378383 [details] [diff] [review]
bug116762-reftests

Marking as review-denied to prompt a response to the question in the previous comment.  When you answer, please re-request review (set the flag back to "?" and fill in my email in the box).
Attachment #378383 - Flags: review?(dbaron) → review-
You need to log in before you can comment on or make changes to this bug.