惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
InfoQ
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
月光博客
月光博客
博客园 - 聂微东
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
A
About on SuperTechFans
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
F
Fortinet All Blogs
H
Help Net Security
J
Java Code Geeks
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
L
LangChain Blog
Martin Fowler
Martin Fowler
N
Netflix TechBlog - Medium

Max Böck | Notes

18 Jan 2024 - 14:25 12 Jan 2024 - 16:23 11 Jan 2024 - 18:11 11 Jan 2024 - 16:51 04 Jan 2023 - 13:19 22 Nov 2021 - 20:55 15 Oct 2021 - 21:12 03 Sep 2021 - 16:56 03 Sep 2021 - 16:52 08 Jul 2021 - 10:04 07 Jul 2021 - 09:04 06 Jul 2021 - 20:03 07 Apr 2021 - 12:03 07 Nov 2020 - 20:11 27 Apr 2020 - 15:27 25 Apr 2020 - 19:28 08 Feb 2020 - 16:13 26 Dec 2019 - 19:47 20 Dec 2019 - 15:23 14 Dec 2019 - 14:50 10 Dec 2019 - 11:32 22 Nov 2019 - 15:36 21 Nov 2019 - 16:37 11 Nov 2019 - 13:10 29 Sep 2019 - 14:30 12 Aug 2019 - 10:13 08 Aug 2019 - 12:46 04 Aug 2019 - 02:00 09 Jun 2019 - 02:00 01 Jun 2019 - 02:00
04 Mar 2019 - 02:00
Max Böck · 2019-03-04 · via Max Böck | Notes

Usually, when writing print CSS, you would want to omit background-color declarations to improve readability (and save ink).

I had a case at work today though where I actually needed them to print. It was used in some progress indicators that didn’t make any sense without it. But some browsers ignore background-color by default in print, unless the user selects otherwise.

If you absolutely have to override that, there’s -webkit-print-color-adjust: exact.
It only works in Chrome and Safari though.

-webkit-print-color-adjust on MDN