Getting autoprefixer warning from prism-line-highlight file
rbirkgit opened this issue · comments
Information:
- Prism version: 1.29.0
- Plugins: line-highlight
- Environment: Angular
Description
We use latest Prism 1.29.0 and getting build warnings:
./projects/src/vendor.scss - Warning: Module Warning (from ./node_modules/postcss-loader/dist/cjs.js): Warning
(28029:5) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.
This is coming from \node_modules\prismjs\plugins\line-highlight\prism-line-highlight.css
.line-highlight {
/*
* This will prevent browsers from replacing the background color with white.
* It's necessary because the element is layered on top of the displayed code.
*/
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
Example
See above. Just adding prism-line-highlight.css
gets this warning in our Angular 16 project. We don't allow warnings in our projects as too many of them hides real issues and it's very hard to see them with a list of warnings. Would be really good to get this fixed.