Closed
Bug 1143
Opened 26 years ago
Closed 26 years ago
Changing style on anchor in list causes layout glitch
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
VERIFIED
FIXED
M6
People
(Reporter: angus, Assigned: buster)
Details
Test case follows. Not sure where this one belongs... The weird behavior is:
1. When you mouseover a link for the first time, all of the bullets in the
unordered list shrink in size slightly.
2. When you mouseout of a link and change the style of the anchor for the second
time, additional "padding" (I don't know if it's really padding) appears around
the text
<html>
<head>
<script>
function hotlink(e) { this.style.color="red"; }
function dimlink(e) { this.style.color="blue"; }
function init() {
var ancs = document.getElementsByTagName("A");
for (var i=0; i<ancs.length; i++) {
ancs[i].onmouseover=hotlink;
ancs[i].onmouseout=dimlink;
}
}
</script>
<body onload="init()">
<ul>
<li><a href="#">Foo</a>
<li><a href="#">Foo</a>
</ul>
</body>
</html>
Reporter | ||
Comment 1•26 years ago
|
||
I've determined that the additional space around the link is not padding, but
(invisible) border. If you explicitly say "borderWidth='0px'" then you don't
experience this problem.
Updated•26 years ago
|
Assignee: vidur → kipp
Comment 2•26 years ago
|
||
Definitely a layout issue. Passing the buck to kipp.
Comment 4•26 years ago
|
||
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
This was fixed some time ago...
The page does demonstrate yet-another-incremental-reflow bug, but since its a
dup of an already opened bug, no point in leaving this one open.
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•