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

document.styleSheets is not reliably updated #27

Closed
mixonic opened this issue Dec 9, 2015 · 2 comments
Closed

document.styleSheets is not reliably updated #27

mixonic opened this issue Dec 9, 2015 · 2 comments

Comments

@mixonic
Copy link
Contributor

mixonic commented Dec 9, 2015

document.styleSheets not always synchronously updated with a new element's sheet.

The element added here may not actually cause a sheet to be added and found in document.styleSheets here.

This presents as an error:

@mixonic
Copy link
Contributor Author

mixonic commented Dec 9, 2015

I can reproduce this on Chrome 48, but not on Safari or FF

@mixonic
Copy link
Contributor Author

mixonic commented Dec 9, 2015

Ahha, confirmation it can also be reproduced on Chrome 47

mixonic added a commit to mixonic/ember-autoresize that referenced this issue Dec 9, 2015
Under memory pressure or some other case, Chrome will fail to
synchronously update the document.styleSheets list. This adds a polling
step that confirms stylesheets are loaded correctly.

Fixes adopted-ember-addons#27
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

No branches or pull requests

1 participant