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

<percentage> in css @property is handled incorrectly after run build #13113

Closed
llliuyang opened this issue Nov 6, 2023 · 2 comments
Closed

Comments

@llliuyang
Copy link

Version

2.7.15

Reproduction link

codepen.io

Steps to reproduce

npm run build

What is expected?

@property --p {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

What is actually happening?

@property --p {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0;
}

The value of 'initial-value' property changes from 0% to 0, causing the animation to fail.
I've tried vue 2.6 upgrades to the latest 2.7.15 all have this problem,but it's correct in vue3.x

@vue/cli: 5.0.8
@llliuyang llliuyang changed the title <pertentage> in css @property is handled incorrectly after run build <percentage> in css @property is handled incorrectly after run build Nov 6, 2023
@yunchuan123
Copy link

This is not a Vue issue, but rather a result of the CSS compression plugin during the bundling process.

@yunchuan123
Copy link

This is an issue with the CSS compression plugin , so you will only encounter this issue after packaging, rather than during the development process.
Although this compression plugin is built-in to Vue-cli.

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