unocss style repeated loading
UnoCSS version
0.62.2
Describe the bug
Using unocss style will load multiple times.
At first I thought it was due to element plus, but the problem still exists after commenting it out
There are problems in Chrome and Edge, but Firefox seems to be normal
Reproduction
https://github.com/mojiefong/my-vue-app
System Info
macOS
pnpm v9.7.0 nodejs v20.10.0
Validations
- [x] Read the Contributing Guidelines.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.
太影响样式调试了,期待解决
How do you trigger that behavior? I couldn't reproduce with your reproduction
How do you trigger that behavior? I couldn't reproduce with your reproduction
Hmm? Can't my repository be reproduced?
Open the debug mode, select the div element and scroll down to see it
Actually, my demo is very simple, I just use vite to initialize the project and then install unocss
I uploaded a gif, you can take a look:
This is not kind of repeat. The repeat you called is just the same global styles inherited from its parent and its acestors, and it is expected to be overrided since the element itselt also applys the global styles. You can see in the style panel that all styles with line-through are listed in its own group, such as body
This is not kind of repeat. The
repeatyou called is just the same global styles inherited from its parent and its acestors, and it is expected to be overrided since the element itselt also applys the global styles. You can see in the style panel thatall styles with line-throughare listed in its own group, such asbody
@zoeyzhao19 So how to optimize this? It affects the debugging of the style a bit.
It is currently consistent with tailwind, so I think it should be reasonable
