Skip to content
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

Getting autoprefixer warning from prism-line-highlight file #3768

Open
rbirkgit opened this issue Jan 22, 2024 · 0 comments
Open

Getting autoprefixer warning from prism-line-highlight file #3768

rbirkgit opened this issue Jan 22, 2024 · 0 comments

Comments

@rbirkgit
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant