Closed
Bug 195018
Opened 22 years ago
Closed 22 years ago
[css] td:hover doesn't work correctly if using <caption> tag in <table>
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 182499
People
(Reporter: akorthaus, Assigned: asa)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.2.1) Gecko/20021130
Hi!
If I user tr:hover or td:hover I expect that css-settings change if I get with
my mouse-pointer somewhere over the cell. But that doesn't work if I use
<caption> in the table, in this case hover only works if I hover text inside the
cell. It doesn't work if I just hover an emty cell or an empty part of a filled
cell.
regards,
Andreas Korthaus
Try the following code to reproduce:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
tr:hover { background-color : green }
td:hover { background-color : lime }
-->
</style>
</head>
<body>
<table>
<caption>Title</caption>
<tbody>
<tr>
<td>The cells in</td>
<td>this table</td>
<td>should go</td>
</tr>
<tr>
<td>green when</td>
<td>you hover</td>
<td>the pointing</td>
</tr>
<tr>
<td>device over</td>
<td style="data" class="data">them.</td>
<td></td>
</tr>
<tr>
<td>The rows in</td>
<td>this table</td>
<td>should go</td>
</tr>
<tr>
<td>dark green</td>
<td>when the</td>
<td>pointing device</td>
</tr>
<tr>
<td>is over the</td>
<td>five pixel</td>
<td>border spacing</td>
</tr>
<tr>
<td>and when it is</td>
<td>over the cells.</td>
<td></td>
</tr>
<tr>
<td>Including blank:</td>
<td></td>
<td>cells.</td>
</tr>
</tbody>
</table>
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1. Make html-File with code above
2. hover empty cell -> nothing happends
3. delete <caption>Title</caption> from code
4. try again, to hover an empty cell - > should work now
Actual Results:
Cell doesn't change color
Expected Results:
Cell shoukd change color because of td:hover { background-color : lime }
Comment 2•22 years ago
|
||
testcase based on code in comment 0 w xhtml 1.0 DTD triggering standards mode
Comment 3•22 years ago
|
||
both test cases I've added WFM - OS/X 2003022303
Reporter your build is pretty old. Please get a recent nightly and reopen the
bug if the problem is still present. It should have been fixed with the patch
from bug 182499 in early december.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Comment 5•22 years ago
|
||
yup... looks like a dupe... reopening to dupe properly
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Comment 6•22 years ago
|
||
marking dupe... yay for spam
*** This bug has been marked as a duplicate of 182499 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago → 22 years ago
Resolution: --- → DUPLICATE
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•