W3C home > Mailing lists > Public > public-html-testsuite@w3.org > June 2012

RE: Question for 2d.composite.operation.darker

From: Kris Krueger <krisk@microsoft.com>
Date: Tue, 19 Jun 2012 02:08:28 +0000
To: Ms2ger <ms2ger@gmail.com>, "public-html-testsuite@w3.org" <public-html-testsuite@w3.org>
Message-ID: <0A605FCDA3A4DC45A98B0DDD1C5351A70370311C@TK5EX14MBXW604.wingroup.windeploy.ntdev.microsoft.com>
I agree with Ms2Ger

-----Original Message-----
From: Ms2ger [mailto:ms2ger@gmail.com] 
Sent: Friday, June 15, 2012 2:18 AM
To: public-html-testsuite@w3.org
Subject: Re: Question for 2d.composite.operation.darker

On 06/15/2012 04:36 AM, 이근용 wrote:
> Hello
>
> I am browser engineer in Samsung Electronics.
>
> I have a question for "2d.composite.operation.darker" test.
>
> This test check whether 'darker' operation is the unrecognized operation.
>
> However, W3C Spec define globalcompositeoperation as follows
>
> |source-atop|
>      AatopB.Display the source image wherever both images are opaque. Display the
>      destination image wherever the destination image is opaque but the source
>      image is transparent. Display transparency elsewhere.
> |source-in|
>      AinB.Display the source image wherever both the source image and destination
>      image are opaque. Display transparency elsewhere.
> |source-out|
>      AoutB.Display the source image wherever the source image is opaque and the
>      destination image is transparent. Display transparency elsewhere.
> |source-over|(default)
>      AoverB.Display the source image wherever the source image is opaque. Display
>      the destination image elsewhere.
> |destination-atop|
>      BatopA.Same as|source-atop
>      <http://www.w3.org/TR/2012/WD-2dcontext-20120329/#gcop-source-atop>|but
>      using the destination image instead of the source image and vice versa.
> |destination-in|
>      BinA.Same as|source-in
>      <http://www.w3.org/TR/2012/WD-2dcontext-20120329/#gcop-source-in>|but using
>      the destination image instead of the source image and vice versa.
> |destination-out|
>      BoutA.Same as|source-out
>      <http://www.w3.org/TR/2012/WD-2dcontext-20120329/#gcop-source-out>|but using
>      the destination image instead of the source image and vice versa.
> |destination-over|
>      BoverA.Same as|source-over
>      <http://www.w3.org/TR/2012/WD-2dcontext-20120329/#gcop-source-over>|but
>      using the destination image instead of the source image and vice versa.
> |lighter|
>      AplusB.Display the sum of the source image and destination image, with color
>      values approaching 255 (100%) as a limit.
> |copy|
>      A(Bis ignored).Display the source image instead of the destination image.
> |xor|
>      AxorB.Exclusive OR of the source image and destination image.
> |vendorName-operationName|
>      Vendor-specific extensions to the list of composition operators should use
>      this syntax
>
>      Currently, Webkit support "darker","lighter" operation as vender specific
>      extension.

"lighter" clearly isn't an extension, as you list it in the quote from the specification above.

>      Although W3C Spec describe vender extension operation, browsers based on
>      Webkit should get "fail" in this test case.
>
>      I think that this test case should be modified or removed.

WebKit violates the specification, and the test correctly tests for that violation. (Gecko used to fail this test as well, with a different implementation of "darker".) I object to modifications to this test that would make WebKit not fail it.

HTH
Ms2ger


Received on Tuesday, 19 June 2012 02:09:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 June 2012 02:09:01 GMT