Closed yisibl closed 2 years ago
What is expected output for this example?
@ai I have updated the expected and added the relevant background https://github.com/w3c/csswg-drafts/issues/118#issuecomment-1079828983.
There is no prefixes in example in the link.
Can you post expected output here for the same browsers settings?
Okay, I'm updated.
It needs to be set to an older version number here.
Thanks!
I will create a task for junior developer since it is a great task for new contributor. I hope it will be fixed in a week or two.
I just reviewed expected example again and found that we need to fix unprefixed version too.
This is against Autoprefixer rules. We are not polyfills.
Looks like it is a job for postcss-preset-env
or Stylelint. Should we create an issue there?
I got it. It seems that a compressor like cssnano would be more appropriate to handle this.
Then Stylelint adds a rule which is of course also good.
Closing this issue since it should be done in another part of CSS tooling.
Can Autoprefixer output a warning?
Do we should some warning already?
I think warnings is for Stylelint 😅
Chrome does not currently support animation names with quotation marks, which is not compliant with the CSS specification.
When quotes are encountered, I think Autoprefixer can automatically remove them to maintain compatibility across all browsers. Otherwise the generated styles won't work in Chrome.
animation: "foo" 2s both 30
does not work in Chrome.parcel-css will remove quotes automatically, I think @devongovett might be able to share more experience.
Input
Output
Expected
Converting all
<string>
to<custom-ident>
would greatly simplify the learning curve for CSS developers, and CSS linter should add a recommended rule to always use<custom-ident>
.If there are whitespace characters, they should be escaped after removing the quotation marks.