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

Sorting algorithm problem #666

Closed
avxit opened this issue Jan 17, 2022 · 0 comments · Fixed by #669
Closed

Sorting algorithm problem #666

avxit opened this issue Jan 17, 2022 · 0 comments · Fixed by #669

Comments

@avxit
Copy link
Contributor

avxit commented Jan 17, 2022

I've create an issue here: windicss/vite-plugin-windicss#264. But after looking through the code, the issue actually belong here. windi sorting algorithm makes some important plugin css rules less "weight" than it should be, so the plugin doesn't works as expected. Take a look at the example here:

image

Preflight css rule button, select, input should have less "weight" than form plugin css rule here. And this cause <select> doesn't look as expected.

Expected

image

Actual

image

After some tests, I can confirm the sorting algorithm cause this behavior. Does anyone has any idea to resolve this issue?

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 a pull request may close this issue.

1 participant