Closed Bug 217714 Opened 21 years ago Closed 20 years ago

Padding problem with em-sized elements inside table-cells

Categories

(Core :: Layout: Block and Inline, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: marcoos, Unassigned)

References

Details

(Keywords: testcase, Whiteboard: [reflow-refactor])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; pl-PL; rv:1.5a) Gecko/20030718
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl-PL; rv:1.5a) Gecko/20030718

The following code acts strangely when the a-elements are being hovered.

<style type="text/css">
.t1 td a {
	padding: 0.2em 3em 3em 0.5em;
	width: 4em;
	height: 3em;
}

.t1 td a:hover {
	padding: 3em 0.5em 0.2em 3em;
}
</style>
...
<table class="t1">
<tr>
<td><a href="http://www.mozilla.org/" id="wt1">12345678</a></td>
<td><a href="http://www.netscape.com/" id="wt2">12345678</a></td>
</tr>
</table>

Putting the mouse cursor over and out of the <a> elements causes space between
them to increase. Longer text in <a> element causes the space to increase even
longer.

A testcase follows.



Reproducible: Always

Steps to Reproduce:
1. Open the testcase.
2. Put your mouse over one of the boxes
3. Put your mouse out of the box

Actual Results:  
The space between boxes increases.

Expected Results:  
The space should remain the same.

These Mozillas have been tested - the bug appears in all of them:

Mozilla/5.0 (Windows; U; Windows NT 5.1; pl-PL; rv:1.5a) Gecko/20030718
Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.4) Gecko/20030624
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030824 Mozilla
Firebird/0.6.1+
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030514 Mozilla Firebird/0.6
Mozilla/5.0 (Windows; U; Win98; fr-FR; rv:1.0.2) Gecko/20030208 Netscape/7.02
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
Netscape/7.1 (ax)
Keywords: testcase
Confirming with 2003082604/trunk/W2K.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Update: The bug appears in 1.5b (WinXP), too.
Depends on: 167408
.
Assignee: dbaron → block-and-inline
Component: Style System → Layout: Block & Inline
Whiteboard: [reflow-refactor]
This bug appeared also in Mozilla 1.6.

But now, it's ok in Mozilla 1.7a and Firefox-trunk. This issue must have been
fixed with checkins to other bugs.

Resolving WORKSFORME.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: