Skip to content

scaleX "only “0” can be a “unit”. You must put a unit after your number" error #439

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

Closed
ashleyryan opened this issue Mar 6, 2025 · 1 comment
Assignees
Labels

Comments

@ashleyryan
Copy link

ashleyryan commented Mar 6, 2025

We regularly validate our CSS against the service and within the last 12 hours so we started getting an error that a transform: scaleX(1) value isn't valid and needs a unit. My understanding is that that's not true, and scale uses a multiple. MDN doesn't show a unit. Is this a bug?

I suspect it may be related to this PR? #438

errors: [
    {
      line: '1729',
      errortype: 'parse-error',
      context: '.removed',
      errorsubtype: '\n                                exp\n                            ',
      skippedstring: '\n' +
        '                                scaleX(1)\n' +
        '                            ',
      type: 'zero',
      message: '\n' +
        '\n' +
        '                                only “0” can be a “unit”. You must put a unit after your number : \n' +
        '                            ',
      error: '\n                        '
    }
  ],
@ylafon ylafon closed this as completed in 06557f9 Mar 19, 2025
@ylafon ylafon self-assigned this Mar 19, 2025
@ylafon ylafon added the bug label Mar 19, 2025
@ylafon
Copy link
Member

ylafon commented Mar 19, 2025

Thanks for the report, it was indeed a side effect of #438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants