print-color-adjust

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

print-color-adjust

Post by RSteinwand »

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
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: print-color-adjust

Post by Albert Wiersch »

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.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: print-color-adjust

Post by RSteinwand »

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