In Browser Mode, css varaibles of browser ui confilcts with postcss-variables-prefixer #6559
Closed
6 tasks done
Labels
feat: browser
Issues and PRs related to the browser runner
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
In my project, I used CSS variables and added prefixes to all of them using postcss-variables-prefixer. However, when running in Vitest's browser mode, this caused the original CSS variables for Vitest's UI to also get prefixed, leading to some UI display issues.
But if not browser mode, vitest ui works well.
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-t5c8dy?file=vite.config.ts
npm test
--myprefixun-rotate
instead of--un-rotate
But if use vitest ui
vitest.workspace.ts
npm run test:ui
--un-rotate
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: