Open
Bug 353363
Opened 19 years ago
Updated 3 years ago
If css overflow value is not 'visible', then child's offsetLeft(js) and offsetTop(js) are wrong.
Categories
(Core :: DOM: Core & HTML, defect, P5)
Core
DOM: Core & HTML
Tracking
()
UNCONFIRMED
People
(Reporter: topperlu, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
If a div element's css overflow property value is not visible(i.e. auto,hidden or scroll), then the javascript offsetLeft and offsetTop values of child element of this div element is wrong.
Reproducible: Always
Steps to Reproduce:
1. Create a div element, which css property overflow is auto.
2. Create a child div element of above div element.
3. Get child div element's offsetLeft and offsetTop.
Actual Results:
Child div element's offsetLeft and offsetTop are wrong.
The result offsetLeft value happens to be the correct value substracts the border-left-width of parent div element. The result offsetTop value happens to be the correct value substracts the border-top-width of parent div element.
Updated•19 years ago
|
Assignee: nobody → general
Component: General → DOM
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.8 Branch
Comment 2•19 years ago
|
||
If I understand this bug correctly, I think it may be fixed in current trunk builds.
Keywords: testcase
var bo = document.getBoxObjectFor(element);
Values of bo.x and bo.y are wrong(the same problems).
Please check bug#356066.
Is this an actual bug? Safari agrees with our values, but I'm not fancy with trusting Safari. Opera gets different values.
OS: Windows XP → All
Hardware: PC → All
Version: 1.8 Branch → Trunk
This bug Still exists in FF3.1 beta (see attached addtional showcase)
Updated•16 years ago
|
Assignee: general → nobody
QA Contact: ian → general
Comment 10•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
| Assignee | ||
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•