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

dynamic 样式处理疑问 #92

Closed
moweng opened this issue Jul 15, 2019 · 1 comment
Closed

dynamic 样式处理疑问 #92

moweng opened this issue Jul 15, 2019 · 1 comment

Comments

@moweng
Copy link

moweng commented Jul 15, 2019

image

//TODO: Currently we only try to get dynamic stylesheet when it is an empty style element
这里为什么需要是空标签的时候才处理呢,如果是空标签的话,这里还有处理的必要吗 @Yuyz0112

@Yuyz0112
Copy link
Member

Yuyz0112 commented Jul 15, 2019

因为有 CSSStyleSheet.insertRule 这样的 DOM API 可以动态插入样式,很多 CSS in JS 工具使用了这个方式。

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

2 participants