-
-
Notifications
You must be signed in to change notification settings - Fork 17
Support specifying processors during processing CSS declarations #327
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
Conversation
69fdeab to
49e38d2
Compare
|
Hi @aleen42, It is always recommended to discuss the intention of creating a feature before working on it, just to avoid working in vain. If you want to support plugins and hooks, it cannot be done in that way that you did and you cannot link plugins and hooks of
The same with hooks, as Please, refactor this following the next:
Regards and thanks for contributing to the project. |
|
@elchininet Thanks for your review. I have eliminated the unnecessary hooks options because it seems we do not need to hook during processing CSS declarations via |
37df2ae to
82b24c3
Compare
tests/__snapshots__/basic-options/combined/process-declaration-plugins.snapshot
Outdated
Show resolved
Hide resolved
|
Hi @aleen42, |
|
@aleen42, |
This pull request implements an option named
processDeclarationPluginsto support stepping into the process of processing CSS declarations, like avoiding flippingbackground-positions.For instance,
RTLCSSwill flip thebackground-position:input
Convert
0to100%(default)output
However, we may need to stop this unexpected flipping in the case of using it to clip Sprite images, so we can use this introduced option to avoid this:
output