Replace CSS color-adjust to print-color-adjust
See original GitHub issueHello, based on the newest update from autoprefixer, the color-adjust shorthand is currently deprecated.
Could color-adjust
be replaced with print-color-adjust
in the code below?
@media print {
/* Prevent printers from removing background-images of controls. */
.leaflet-control {
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
}
source: https://github.com/Leaflet/Leaflet/blob/main/dist/leaflet.css#L658
- I’ve looked at the documentation to make sure the behavior is documented and expected
- I’m sure this is a Leaflet code issue, not an issue with my own code nor with the framework I’m using (Cordova, Ionic, Angular, React…)
- I’ve searched through the issues to make sure it’s not yet reported
Steps to reproduce Steps to reproduce the behavior:
- use autoprefixer to prefix css
Expected behavior
Not the warning “autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.” to occur
Environment
- Leaflet version: 1.8.0
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
autoprefixer: Replace color-adjust to print ... - Stack Overflow
I came across this error but unrelated to Bootstrap. It was with Next.js / Tailwind CSS. I ...
Read more >autoprefixer: Replace color-adjust to print-color-adjust. #36259
and with postcss-fail-on-warn message failed my build :( fix: npm install autoprefixer@10.4.5 --save-exact.
Read more >print-color-adjust - CSS: Cascading Style Sheets | MDN
When printing a page, the browser might want to replace light-colored text on a dark background with dark text on a white background....
Read more >Solved — autoprefixer: Replace color-adjust to print-color ...
node_modules/postcss-loader/dist/cjs.js): Warningautoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently ...
Read more >print-color-adjust | CSS-Tricks
The print-color-adjust CSS property is sort of like a cost-cutting measure when it comes to printing a webpage.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nessor no there will be no release in the next days. You can simply overwrite the css by adding this to your own css file:
Still no patch release planned for this?