Closed
Bug 435189
Opened 16 years ago
Closed 16 years ago
Pixel creep on repeated hiding / showing of table body.
Categories
(Core :: Layout: Tables, defect)
Core
Layout: Tables
Tracking
()
RESOLVED
FIXED
People
(Reporter: spam, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file)
(deleted),
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008052106 Minefield/3.0pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008052106 Minefield/3.0pre
Hiding / showing the table body repeatedly via javascript + CSS will add extra 'empty' pixels subsequent HTML elements.
Reproducible: Always
Steps to Reproduce:
Reduced test case:
<html>
<head></head>
<body>
<script language="JavaScript">
function toggle(obj)
{
var element = document.getElementById(obj);
if(element == null)
return;
if(element.style.display == 'none')
{
element.style.display = 'block';
}
else
{
element.style.display = 'none';
}
}
</script>
<table style="width: 100%;">
<thead>
<tr>
<td colspan="3"><a href="#" onclick="toggle('abc');">x</a> abc</td>
</tr>
</thead>
<tbody id="abc" style="display: none;">
<tr>
<td>a</td>
<td>b</td>
<td>c</td>
</tr>
</tbody>
</table>
<hr>
</fieldset>
Actual Results:
HR bar moving further down the page each time the table is show / hidden.
Expected Results:
HR bar moving back to it's original position.
This could be a dupe of Bug 148810.
(In reply to comment #1)
> Created an attachment (id=361053) [details]
> testcase
Click start and you'll see that the table row moves down.
Status: UNCONFIRMED → NEW
Component: DOM: CSS Object Model → Layout: Tables
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
QA Contact: general → layout.tables
Hardware: x86 → All
Version: unspecified → Trunk
This was fixed when bug 162063 landed.
Updated•16 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•