Re: [webkit-dev] Proposal: Remove CSS color-correction property

2015-07-02 Thread Dirk Schulze

> On Jul 2, 2015, at 8:47 AM, Tim Horton  wrote:
> 
> 
>> On Jul 1, 2015, at 23:36, Dirk Schulze  wrote:
>> 
>> Hi Darin,
>> 
>>> On Jul 1, 2015, at 5:16 PM, Darin Adler  wrote:
>>> 
>>> Hi folks.
>>> 
>>> WebKit has a CSS property named color-correction. It’s still prefixed, so 
>>> some would call it -webkit-color-correction and I don’t think it’s yet been 
>>> proposed as a CSS standard.
>>> 
>>> Apple engineers added this a while back so that WebKit could continue 
>>> interpret webpage and image colors as device native color space for 
>>> performance and to match content from legacy plug-ins. The property allowed 
>>> some web content to specify sRGB to get predictable results when 
>>> correctness mattered more than performance.
>>> 
>>> If I’m not mistaken, this optimization is no longer effective on either of 
>>> the Apple platforms. I’m pretty sure we always do the color correction. I 
>>> suspect no one needs this feature.
>> 
>> Do you mean that WebKit uses sRGB by default now? I thought the default 
>> would still be DeviceRGB.
> 
> DeviceRGB became equivalent to sRGB (thus causing WebKit to do color 
> correction as if all colors are tagged as sRGB) on OS X a few releases ago. 
> It no longer means “the same color space as the display”.

I see. There was an attempt to specify this property from Mozilla. IIRC they 
had issues with color managed Flash applications that blend into a HTML context 
and same colors didn't match between Flash and HTML. So far Flash was the only 
use case. IMO not a forward looking approach.

If sRGB and DeviceRGB are the only property values and DeviceRGB maps to sRGB 
in Safari, there doesn't seem to be a reason to keep the property.

Greetings,
Dirk 

> 
>> Greetings,
>> Dirk
>> 
>>> 
>>> I suggest we remove the property.
>>> 
>>> Does anyone know a good reason not to remove it? I won’t necessarily land 
>>> the code to remove it right away, but I’d like to get agreement on this now 
>>> so I can do that later.
>>> 
>>> — Darin
>>> ___
>>> webkit-dev mailing list
>>> webkit-dev@lists.webkit.org
>>> https://lists.webkit.org/mailman/listinfo/webkit-dev
>> ___
>> webkit-dev mailing list
>> webkit-dev@lists.webkit.org
>> https://lists.webkit.org/mailman/listinfo/webkit-dev
> 
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Proposal: Remove CSS color-correction property

2015-07-01 Thread Tim Horton

> On Jul 1, 2015, at 23:36, Dirk Schulze  wrote:
> 
> Hi Darin,
> 
>> On Jul 1, 2015, at 5:16 PM, Darin Adler  wrote:
>> 
>> Hi folks.
>> 
>> WebKit has a CSS property named color-correction. It’s still prefixed, so 
>> some would call it -webkit-color-correction and I don’t think it’s yet been 
>> proposed as a CSS standard.
>> 
>> Apple engineers added this a while back so that WebKit could continue 
>> interpret webpage and image colors as device native color space for 
>> performance and to match content from legacy plug-ins. The property allowed 
>> some web content to specify sRGB to get predictable results when correctness 
>> mattered more than performance.
>> 
>> If I’m not mistaken, this optimization is no longer effective on either of 
>> the Apple platforms. I’m pretty sure we always do the color correction. I 
>> suspect no one needs this feature.
> 
> Do you mean that WebKit uses sRGB by default now? I thought the default would 
> still be DeviceRGB.

DeviceRGB became equivalent to sRGB (thus causing WebKit to do color correction 
as if all colors are tagged as sRGB) on OS X a few releases ago. It no longer 
means “the same color space as the display”.

> Greetings,
> Dirk
> 
>> 
>> I suggest we remove the property.
>> 
>> Does anyone know a good reason not to remove it? I won’t necessarily land 
>> the code to remove it right away, but I’d like to get agreement on this now 
>> so I can do that later.
>> 
>> — Darin
>> ___
>> webkit-dev mailing list
>> webkit-dev@lists.webkit.org
>> https://lists.webkit.org/mailman/listinfo/webkit-dev
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Proposal: Remove CSS color-correction property

2015-07-01 Thread Dirk Schulze
Hi Darin,

> On Jul 1, 2015, at 5:16 PM, Darin Adler  wrote:
> 
> Hi folks.
> 
> WebKit has a CSS property named color-correction. It’s still prefixed, so 
> some would call it -webkit-color-correction and I don’t think it’s yet been 
> proposed as a CSS standard.
> 
> Apple engineers added this a while back so that WebKit could continue 
> interpret webpage and image colors as device native color space for 
> performance and to match content from legacy plug-ins. The property allowed 
> some web content to specify sRGB to get predictable results when correctness 
> mattered more than performance.
> 
> If I’m not mistaken, this optimization is no longer effective on either of 
> the Apple platforms. I’m pretty sure we always do the color correction. I 
> suspect no one needs this feature.

Do you mean that WebKit uses sRGB by default now? I thought the default would 
still be DeviceRGB.

Greetings,
Dirk

> 
> I suggest we remove the property.
> 
> Does anyone know a good reason not to remove it? I won’t necessarily land the 
> code to remove it right away, but I’d like to get agreement on this now so I 
> can do that later.
> 
> — Darin
> ___
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Proposal: Remove CSS color-correction property

2015-07-01 Thread Darin Adler
Hi folks.

WebKit has a CSS property named color-correction. It’s still prefixed, so some 
would call it -webkit-color-correction and I don’t think it’s yet been proposed 
as a CSS standard.

Apple engineers added this a while back so that WebKit could continue interpret 
webpage and image colors as device native color space for performance and to 
match content from legacy plug-ins. The property allowed some web content to 
specify sRGB to get predictable results when correctness mattered more than 
performance.

If I’m not mistaken, this optimization is no longer effective on either of the 
Apple platforms. I’m pretty sure we always do the color correction. I suspect 
no one needs this feature.

I suggest we remove the property.

Does anyone know a good reason not to remove it? I won’t necessarily land the 
code to remove it right away, but I’d like to get agreement on this now so I 
can do that later.

— Darin
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev