W3C home > Mailing lists > Public > www-style@w3.org > December 2013

Re: [css-color] Safari 7 is color-managing CSS colors?

From: Dean Jackson <dino@apple.com>
Date: Sat, 07 Dec 2013 10:21:31 +1100
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-id: <A6C7DD69-9D25-4CF0-A528-68EEF5ACE8BD@apple.com>
To: Chris Lilley <chris@w3.org>

On 7 Dec 2013, at 7:28 am, Chris Lilley <chris@w3.org> wrote:

> Hello Dean,
> 
> Friday, December 6, 2013, 8:53:35 PM, you wrote:
> 
>> Yes, we now follow the CSS spec and match to sRGB.
> 
> Cool and (unlike Microsoft IE 9/10 which convert colours *to* sRGB but
> then fails to convert them *to* the monitor gamut if that is not sRGB)
> it seems from Tab's comment that you correctly do both steps (read the
> CSS colors as sRGB, and transform to output device colourspace.

We tag the colours as sRGB, then OS X does whatever magic is needed
for the output device.

> Could you confirm that you do this for both monitors and for printers?

I canít confirm since I donít have a printer, but I assume it would work.

> I assume its still the case that ICC-tagged raster images are
> correctly handled (converted from source colourspace to output device
> colourspace)?

Yes. If not, itís a bug.

Please file any bugs you see. Some plugin content could possibly now not
match the CSS colours used in the page, but thatís kind-of expected.

(BTW - Tim Horton is the evil engineer behind all this, and heís reading
the thread, but Iíve told him that the path to eternal happiness definitely
includes NEVER talking on a standards email list)

Dean

> 
>> Dean
> 
>> On 6 Dec 2013, at 2:27 pm, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> 
>>> It looks like Safari 7 has begun managing CSS colors, without
>>> mentioning this to anyone.  In particular, if you visit
>>> <http://www.libpng.org/pub/png/colorcube/colorcube-pngs-iCCP-CSS.html>
>>> on a wide-gamut (non-sRGB) monitor, the squares and their borders will
>>> be different colors on Chrome and Firefox, but the same color in
>>> Safari 7.
>>> 
>>> (If you visit it on an sRGB monitor you won't see anything special,
>>> since the border colors will be in sRGB even in the browsers that
>>> don't color-correct.)
>>> 
>>> I haven't yet tested whether they color-manage untagged images as
>>> well, as required by CSS.
>>> 
>>> Anyone from Apple have any further details?
>>> 
>>> ~TJ
>>> 
> 
> 
> 
> 
> 
> -- 
> Best regards,
> Chris                            mailto:chris@w3.org
Received on Friday, 6 December 2013 23:22:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:17 UTC