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)

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

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>
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.
Assignee: vidur → kipp
Definitely a layout issue. Passing the buck to kipp.
Setting all current Open/Normal to M4.
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
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.
Status: RESOLVED → VERIFIED
Verified on 1999-05-07-08 build.
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.