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

Option to only use insertRule in certain environments #389

Open
bslinger opened this issue Mar 19, 2020 · 0 comments
Open

Option to only use insertRule in certain environments #389

bslinger opened this issue Mar 19, 2020 · 0 comments

Comments

@bslinger
Copy link

I appreciate the performance increase of adding new styles using CSSStyleSheet.insertRule, however I've run into issues when using visual testing tools such as Percy as they take a snapshot of the current DOM and render it elsewhere, meaning the styles added during execution aren't available.

Presumably this would need to be configurable in some way, but ideally I would like to use insertRule in production and append to the <style> tag in other environments.

Anybody have any thoughts on the best way to approach this?

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