Closed
Bug 809208
Opened 13 years ago
Closed 13 years ago
Element's offsetTop value changes when parent node gets style transformation
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mgalli, Unassigned)
References
()
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4
Steps to reproduce:
Tests for the sample:
http://www.telasocial.com/labs/offsettop.html
Which is:
* JS applies a style transform translate to the body
* JS checks the value of offsetTop for inner element
Actual results:
Value of offset top has changed.
Expected results:
Value of offsetTop to keep the same.
I am marking this bug resolved as invalid after advice from Boris. It turns out that Gecko disables margin collapsing when body gets the transformation. This changes the body padding which affects the calculations for offsetTop/Left.
BTW webkit behavior is not the same as Gecko.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•