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

Translate RegExp's are too relaxed which can result in skipping replacements #69

Closed
TedSander opened this issue Sep 17, 2018 · 1 comment · Fixed by #70
Closed

Translate RegExp's are too relaxed which can result in skipping replacements #69

TedSander opened this issue Sep 17, 2018 · 1 comment · Fixed by #70
Assignees

Comments

@TedSander
Copy link

It is probably easier to show in code. The following CSS snippet will not flip both transforms:

drawer {
  transform: translate(-100%)
}
drawer {
  transform: translate(100%)
}

This seems to be because the transform RegExp is selecting too much. It will work if both or even one of the rules have a semi-colon after it:

drawer {
  transform: translate(-100%);
}
drawer {
  transform: translate(100%);
}

I'm not sure if it affects any other rules. This seems more problematic for compilers such as Sass which automatically removes the last semi-colon for properties to save some space.

@TedSander
Copy link
Author

@Krinkle any update? would the patch work for this?

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

Successfully merging a pull request may close this issue.

2 participants