Closed
Bug 189057
Opened 23 years ago
Closed 21 years ago
border change with pseudo-class :hover causes table cell expansion
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bo, Unassigned)
Details
Attachments
(1 file)
411 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
Table cell containing a div element that has its border changed through
the pseudo-class :hover causes the width of the cell to expand. Every time
the mouse cursor is moved over the cell a further expansion occurrs until
other cells occupy minumum possible space.
Reproducible: Always
Steps to Reproduce:
1.Load the following HTML into Mozilla 1.2.1
<html>
<head>
<title>Button test</title>
<style type="text/css">
div.button
{
border: 2px groove #fffff0;
text-align: center;
color: #6666cc;
cursor: pointer;
background-color: #cccccc;
font-weight: bold;
}
div.button:hover
{
color: #0000ff;
background-color: #cfcfcf;
text-decoration: underline;
border: 1px outset #cccccc;
padding: 1px;
}
span.button-text
{
white-space: nowrap;
}
</style>
</head>
<body>
<table width="100%" border="1" cellspacing="10">
<tr>
<td>
<div id="foo" class="button" style="width: 10em;">
<span id="foo-text" class="button-text">Simple Button</span>
</div>
</td>
<td>
traveling foo
</td>
</tr>
</table>
</body>
2. Notice the initial sizes of two table cells
3. Repeatedly move the cursor over the first cell containing "Simple Button"
4. Notice new table cell sizes
Actual Results:
The first cell took all available space in the table row.
Expected Results:
Cell sizes should remain unchanged.
My current theme is Orbit Retro 1.2.0.0.6.3-dev
may be a dupe of bug 187568
Comment 3•22 years ago
|
||
could even be dup of bug 179696 ....
this works now, probably as the result of dbarons checkin for bug 217369
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•