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

Problem when declaring text in content property if same as alias #41

Closed
rubenmarcus opened this issue Sep 1, 2016 · 1 comment
Closed
Assignees
Labels

Comments

@rubenmarcus
Copy link

ex:

@alias {
op: opacity;
}

.tooltip {
content: 'Select one option'
}

rendering : 'Select one opacitytion'

@madeleineostoja
Copy link
Owner

Sorry missed this one.

Looks like the regex for postcss-alias is being too greedy. For memory this was done to support multi-property declaration (eg: transition: opactiy ... ).

The only way I can think of supporting that use-case and not running into issues like this is by having a whitelist of valid css properties, but even that wouldn't ensure it doesn't mangle unwanted text. Might just have to deprecate that feature

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