print-color-adjust

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 573
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

print-color-adjust

Post by RSteinwand » Wed Dec 07, 2016 11:26 am

Hi Albert,

Just noticed your print style sheet additions... nice. Just added this today, well aware that only Chrome/Safari currently support it:

Code: Select all

@media print and (color){*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
... but this is the message, which if I took literally, I'd have two -webkit versions:
Should this "print-color-adjust" property be "-webkit-print-color-adjust" instead? The "print-color-adjust" property is not known to have any effect in any browser.
Since the webkit version already exists, I wonder if it could be shortened to simply:
The "print-color-adjust" property is not known to have any effect in any browser.
... but I'm probably being too fussy. :? But since there's such a low adoption rate for this, probably good enough as-is?

CanIUse still doesn't support it. Consider voting the issue up: https://github.com/Fyrd/caniuse/issues/2634
Rick

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3242
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: print-color-adjust

Post by Albert Wiersch » Wed Dec 07, 2016 3:22 pm

Yes, excellent suggestion. I see little point in suggesting a property(ies) that already exist(s). This change/improvement will be in the next update. It'll not only affect the print-color-adjust property but also other properties that generate similar messages.

The new message (if -webkit-print-color-adjust is used):
The "print-color-adjust" property is not known to have any effect in any browser. Properties that are known to have an effect: "-webkit-print-color-adjust".

The new message (if -webkit-print-color-adjust is not used):
Should this "print-color-adjust" property be "-webkit-print-color-adjust" instead? The "print-color-adjust" property is not known to have any effect in any browser.
Image
Albert Wiersch

User avatar
RSteinwand
Rank VI - Professional
Rank VI - Professional
Posts: 573
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: print-color-adjust

Post by RSteinwand » Thu Dec 08, 2016 7:57 am

I'm glad you found it usefull, b/c in retrospect I thought it might be petty and came very close to deleting the post.
Rick

Post Reply