Getting autoprefixer warning from prism-line-highlight file
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13k
- Forks
- 1.4k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 3
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with plugins/line-highlight/prism-line-highlight.css and inspect the color-adjust declarations reported by Autoprefixer. Run the relevant CSS build or plugin checks, and confirm that including this stylesheet no longer produces the deprecation warning in an Angular-style build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100