-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
[Bug]: reduceInitial ignore pointer-events not working #1436
Comments
Thank you for the bug report. What you are trying to do seems reasonable, but I think at the moment cssnano ignores any plugin options except |
@jamacoe Why you want to disable it? |
@alexander-akait I try to get rid of warnings reported by CSS validator. It reports: |
@jamacoe Can you provide the source code of this warning? Thank you |
Complete .css source to reproduce: cssnano compiles this to: Enter it interactivly at https://jigsaw.w3.org/css-validator/#validate_by_input+with_options and receive warning: |
I see, thank you |
The validator might be wrong, |
Possible duplicate of #663 (plugin options have no effect when the plugin config is nested inside a preset config) |
Actually the issue is specific to the way |
Fix #1436 Ensure options are read also when the plugin is configured in cssnano instead as a standalone PostCSS plugin.
Fix #1436 Ensure options are read also when the plugin is configured in cssnano instead as a standalone PostCSS plugin.
Describe the bug
In gulp 4: disabling reduceInitial from default preset work, so obv. I'm addressing the thing correct. But { ignore : ["pointer-events"] } doesn't have any effect on the output. pointer-events: initial will be translated to pointer-events: auto.
Expected behaviour
I expect pointer-events: initial to be left untouched.
Steps to reproduce
CSS:
.test {
pointer-events: initial;
}
Version
5.1.13
Preset
default
Environment
Package details
Additional context
No response
The text was updated successfully, but these errors were encountered: