Bug 120057 - [CSS Background Blending] Test background blending with gif layers
Summary: [CSS Background Blending] Test background blending with gif layers
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 108546
  Show dependency treegraph
 
Reported: 2013-08-20 02:25 PDT by Mihai Tica
Modified: 2014-01-13 06:47 PST (History)
4 users (show)

See Also:


Attachments
Patch (15.79 KB, patch)
2013-08-20 02:28 PDT, Mihai Tica
no flags Details | Formatted Diff | Diff
Patch (12.81 KB, patch)
2013-08-29 09:21 PDT, Mihai Tica
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion (824.61 KB, application/zip)
2013-08-29 10:00 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-13 for mac-mountainlion-wk2 (829.05 KB, application/zip)
2013-08-29 13:16 PDT, Build Bot
no flags Details
Patch (12.81 KB, patch)
2013-08-30 01:18 PDT, Mihai Tica
no flags Details | Formatted Diff | Diff
Patch (16.60 KB, patch)
2013-08-30 07:17 PDT, Mihai Tica
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion (512.64 KB, application/zip)
2013-08-30 08:36 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 (1.31 MB, application/zip)
2013-08-30 12:19 PDT, Build Bot
no flags Details
Patch (16.54 KB, patch)
2013-09-02 06:01 PDT, Mihai Tica
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2 (488.93 KB, application/zip)
2013-09-02 07:50 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion (526.68 KB, application/zip)
2013-09-02 10:13 PDT, Build Bot
no flags Details
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion (507.93 KB, application/zip)
2013-09-02 11:14 PDT, Build Bot
no flags Details
Patch (21.02 KB, patch)
2013-09-02 23:51 PDT, Mihai Tica
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion (687.91 KB, application/zip)
2013-09-03 02:20 PDT, Build Bot
no flags Details
Patch (21.02 KB, patch)
2013-09-04 07:17 PDT, Mihai Tica
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mihai Tica 2013-08-20 02:25:57 PDT
Validate CSS Background Blending when an element has a gif background layer set.
Comment 1 Mihai Tica 2013-08-20 02:28:25 PDT
Created attachment 209171 [details]
Patch
Comment 2 Darin Adler 2013-08-20 13:05:06 PDT
Comment on attachment 209171 [details]
Patch

Why not a reference test?
Comment 3 Mihai Tica 2013-08-27 01:18:38 PDT
(In reply to comment #2)
> (From update of attachment 209171 [details])
> Why not a reference test?

Sounds good, I'll start working on it.
Comment 4 Mihai Tica 2013-08-29 09:21:21 PDT
Created attachment 209990 [details]
Patch
Comment 5 Build Bot 2013-08-29 10:00:02 PDT
Comment on attachment 209990 [details]
Patch

Attachment 209990 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/1623620

New failing tests:
css3/compositing/background-blend-mode-gif-color.html
Comment 6 Build Bot 2013-08-29 10:00:04 PDT
Created attachment 209996 [details]
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-08  Port: mac-mountainlion  Platform: Mac OS X 10.8.4
Comment 7 Build Bot 2013-08-29 13:16:09 PDT
Comment on attachment 209990 [details]
Patch

Attachment 209990 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/1591981

New failing tests:
css3/compositing/background-blend-mode-gif-color.html
Comment 8 Build Bot 2013-08-29 13:16:11 PDT
Created attachment 210022 [details]
Archive of layout-test-results from webkit-ews-13 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-13  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.4
Comment 9 Mihai Tica 2013-08-30 01:18:09 PDT
Created attachment 210074 [details]
Patch
Comment 10 Dirk Schulze 2013-08-30 05:35:34 PDT
Comment on attachment 210074 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=210074&action=review

r=me

> LayoutTests/ChangeLog:4
> +        Test background blend modes with gif background layers.
> +        https://bugs.webkit.org/show_bug.cgi?id=120057

Why does it need to be an animated gif? The ChangeLog should be more precise about that. Also, shouldn't animated gif's influence blending as well (when the content of the gif changes)? Is it possible to write tests for that?
Comment 11 Mihai Tica 2013-08-30 07:17:52 PDT
Created attachment 210107 [details]
Patch
Comment 12 Mihai Tica 2013-08-30 07:19:09 PDT
(In reply to comment #10)
> (From update of attachment 210074 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=210074&action=review
> 
> r=me
> 
> > LayoutTests/ChangeLog:4
> > +        Test background blend modes with gif background layers.
> > +        https://bugs.webkit.org/show_bug.cgi?id=120057
> 
> Why does it need to be an animated gif? The ChangeLog should be more precise about that. Also, shouldn't animated gif's influence blending as well (when the content of the gif changes)? Is it possible to write tests for that?

I've added another test which validates that blend mode update when the content of the gif changes.
Comment 13 Build Bot 2013-08-30 08:36:41 PDT
Comment on attachment 210107 [details]
Patch

Attachment 210107 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/1633107

New failing tests:
css3/compositing/background-blend-mode-gif-color-2.html
css3/compositing/background-blend-mode-gif-color.html
Comment 14 Build Bot 2013-08-30 08:36:42 PDT
Created attachment 210114 [details]
Archive of layout-test-results from webkit-ews-07 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-07  Port: mac-mountainlion  Platform: Mac OS X 10.8.4
Comment 15 Build Bot 2013-08-30 12:19:26 PDT
Comment on attachment 210107 [details]
Patch

Attachment 210107 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/1603054

New failing tests:
css3/compositing/background-blend-mode-gif-color-2.html
css3/compositing/background-blend-mode-gif-color.html
Comment 16 Build Bot 2013-08-30 12:19:28 PDT
Created attachment 210145 [details]
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-12  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.4
Comment 17 Mihai Tica 2013-09-02 06:01:07 PDT
Created attachment 210278 [details]
Patch
Comment 18 Build Bot 2013-09-02 07:50:55 PDT
Comment on attachment 210278 [details]
Patch

Attachment 210278 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/1609958

New failing tests:
css3/compositing/background-blend-mode-gif-color-2.html
css3/compositing/background-blend-mode-gif-color.html
Comment 19 Build Bot 2013-09-02 07:50:58 PDT
Created attachment 210284 [details]
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-09  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.4
Comment 20 Build Bot 2013-09-02 10:13:50 PDT
Comment on attachment 210278 [details]
Patch

Attachment 210278 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/1688050

New failing tests:
css3/compositing/background-blend-mode-gif-color-2.html
css3/compositing/background-blend-mode-gif-color.html
Comment 21 Build Bot 2013-09-02 10:13:52 PDT
Created attachment 210298 [details]
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-08  Port: mac-mountainlion  Platform: Mac OS X 10.8.4
Comment 22 Build Bot 2013-09-02 11:14:26 PDT
Comment on attachment 210278 [details]
Patch

Attachment 210278 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/1688065

New failing tests:
css3/compositing/background-blend-mode-gif-color-2.html
css3/compositing/background-blend-mode-gif-color.html
Comment 23 Build Bot 2013-09-02 11:14:28 PDT
Created attachment 210300 [details]
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-02  Port: mac-mountainlion  Platform: Mac OS X 10.8.4
Comment 24 Mihai Tica 2013-09-02 23:51:44 PDT
Created attachment 210328 [details]
Patch
Comment 25 Mihai Tica 2013-09-02 23:53:09 PDT
There were inconsistencies between the local results and the ones from the bots, in other words, my tests would only pass locally.

Converting them back to pixel tests.
Comment 26 Darin Adler 2013-09-02 23:55:11 PDT
Comment on attachment 210328 [details]
Patch

Can we do these as reference tests instead of pixel tests?
Comment 27 Mihai Tica 2013-09-03 00:52:30 PDT
(In reply to comment #26)
> (From update of attachment 210328 [details])
> Can we do these as reference tests instead of pixel tests?

The test scenario implies blending an animated gif with a background color, and comparing it with another div filled with the expected resulted color.

I've tried doing this, however, there were inconsistencies between the reference html that passed on my local machine and the bot-machine results.

What I suspect is that blending operations output slightly different results across platforms (+/- a few units per color component), making ref tests unusable in this scenario, as I've seen with the previous two versions of this patch.

This is the reason I've decided to rework this patch and use pixel tests instead.
Comment 28 Build Bot 2013-09-03 02:20:46 PDT
Comment on attachment 210328 [details]
Patch

Attachment 210328 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/1692190

New failing tests:
http/tests/appcache/resource-redirect.html
http/tests/appcache/abort-cache-ondownloading-resource-404.html
http/tests/appcache/abort-cache-onprogress.html
http/tests/appcache/abort-cache-ondownloading.html
http/tests/appcache/resource-redirect-2.html
http/tests/appcache/interrupted-update.html
http/tests/inspector/appcache/appcache-manifest-with-non-existing-file.html
http/tests/appcache/404-resource.html
Comment 29 Build Bot 2013-09-03 02:20:49 PDT
Created attachment 210339 [details]
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-04  Port: mac-mountainlion  Platform: Mac OS X 10.8.4
Comment 30 Mihai Tica 2013-09-04 07:17:30 PDT
Created attachment 210456 [details]
Patch
Comment 31 Darin Adler 2013-09-04 09:21:26 PDT
Comment on attachment 210456 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=210456&action=review

> LayoutTests/ChangeLog:9
> +        * css3/compositing/background-blend-mode-gif-color-2.html: Added.
> +        * css3/compositing/background-blend-mode-gif-color.html: Added.

Can we make these reference tests instead of pixel tests?
Comment 32 WebKit Commit Bot 2013-09-04 23:31:35 PDT
Comment on attachment 210456 [details]
Patch

Clearing flags on attachment: 210456

Committed r155097: <http://trac.webkit.org/changeset/155097>
Comment 33 WebKit Commit Bot 2013-09-04 23:31:39 PDT
All reviewed patches have been landed.  Closing bug.