Skip to content

Remove offsetparent call #224

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

Merged
merged 2 commits into from
Jan 28, 2016
Merged

Remove offsetparent call #224

merged 2 commits into from
Jan 28, 2016

Conversation

mdtusz
Copy link
Contributor

@mdtusz mdtusz commented Jan 28, 2016

Resolves #222. It seems that the text.offsetParent call is unnecessary (except maybe in old versions of IE?).

In any case - chrome is deprecating it so we should remove it before then.


var bBox = link.getBoundingClientRect();
expect(bBox.width).toBeGreaterThan(0);
expect(bBox.height).toBeGreaterThan(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great test 🎉

@mdtusz
Copy link
Contributor Author

mdtusz commented Jan 28, 2016

Seems to work fine in IE!

@etpinard
Copy link
Contributor

💃 nicely done.

mdtusz added a commit that referenced this pull request Jan 28, 2016
@mdtusz mdtusz merged commit b578058 into master Jan 28, 2016
@mdtusz mdtusz deleted the remove-offsetparent branch January 28, 2016 20:12
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.

2 participants