Closed
Bug 141732
Opened 23 years ago
Closed 23 years ago
negative values for left/top (style) position
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
People
(Reporter: Telstar-Mail, Assigned: jst)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc1) Gecko/20020417
BuildID: 2002041711 (and previous)
In this topic case Mozilla 5 doesn't behave like expected.
The a.m. page has been updated for DOM-style use and "document.innerHTML" (or
firstChild) to produce a "sliding message" -- i.e. single words varying their
font-size via DHTML.
Up from a certain point negative "left" values are needed to maintain the
page-centering, which is OK with Netscape 4 and M$-IExplorer 4...6!
The Mozilla 5 (and of course Netscape6) versions "cumulate" negative left-values
onto the left edge of the Browser-window...
Reproducible: Always
Steps to Reproduce:
1. Goto www.telstar.de.tf
2. enter the page
3. view DHTML
Actual Results: see: Description
Expected Results: Centering each word of the message in every upcoming font-size
The web-page is the site of my own.
Comment 1•23 years ago
|
||
The site never sets the position to a negative value... the relevant code (in
Slide.js) is:
SLO=document.getElementById("SLIDE");
xoff=SLO.offsetWidth/2;
SLD.left=xpos - parseInt(xoff) +"px";
Now xoff is never bigger than the screen width (bug 65548). So the site sets
SLD.left to about 15px and you see what you see.
*** This bug has been marked as a duplicate of 65548 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•