Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #1374 utils.Dom.calculatePosition|getOffset discrepancy in webkit #1375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jakub-g
Copy link
Collaborator

@jakub-g jakub-g commented Dec 12, 2014

Due to discrepancy how browsers report page scroll (setting scrollTop
either on document.body or document.documentElement),
aria.utils.Dom.getOffset() returned wrong values in webkit browsers
for absolutely positioned elements when the viewport was scrolled.

jakub-g added a commit to jakub-g/ariatemplates that referenced this pull request Dec 12, 2014
…ncy in webkit

Due to discrepancy how browsers report page scroll (setting `scrollTop`
either on `document.body` or `document.documentElement`),
`aria.utils.Dom.getOffset()` returned wrong values in webkit browsers
for absolutely positioned elements when the viewport was scrolled.

The exact point of failure was querying explicitly
`calculatePosition(document.body)` which happens when `getOffset(element)`
traverses element's offsetParents up to BODY.

Close ariatemplates#1375
jakub-g added a commit to jakub-g/ariatemplates that referenced this pull request Dec 12, 2014
…ncy in webkit

Due to discrepancy how browsers report page scroll (setting `scrollTop`
either on `document.body` or `document.documentElement`),
`aria.utils.Dom.getOffset()` returned wrong values in webkit browsers
for absolutely positioned elements when the viewport was scrolled.

[see https://code.google.com/p/chromium/issues/detail?id=284141]

The exact point of failure was querying explicitly
`calculatePosition(document.body)` which happens when `getOffset(element)`
traverses element's offsetParents up to BODY.

Close ariatemplates#1375
…ancy

Due to discrepancy how browsers report page scroll (setting `scrollTop`
either on `document.body` or `document.documentElement`),
`aria.utils.Dom.getOffset()` returned wrong values in webkit browsers
for absolutely positioned elements when the viewport was scrolled.

[see https://code.google.com/p/chromium/issues/detail?id=284141]

The exact point of failure was querying explicitly
`calculatePosition(document.body)` which happens when `getOffset(element)`
traverses element's offsetParents up to BODY.

Close ariatemplates#1375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant