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

Add CSS to each document a component is rendered to #362

Merged
merged 4 commits into from
Mar 10, 2017
Merged

Conversation

Rich-Harris
Copy link
Member

This is mostly @cristinecula's work, with one small tweak: rather than storing the owner document on this._document, we use the natural 'choke point' of fragment.mount so that we can use target.ownerDocument there instead.

cristinecula and others added 4 commits March 3, 2017 17:19
1. store the _root's ownerDocument and inherit it in all child components
2. use this document when adding the styles
3. store a css presence flag on the document
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