Bug 113137

Summary: Test if non-immediate descendants obscure background
Product: WebKit Reporter: Antti Koivisto <koivisto>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dglazkov, eric, esprehn+autocc, gtk-ews, ojan.autocc, simon.fraser, webkit.review.bot, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
none
rebase with less printf
gtk-ews: commit-queue-
Archive of layout-test-results from gce-cr-linux-05 for chromium-linux-x86_64
none
Archive of layout-test-results from gce-cr-linux-04 for chromium-linux-x86_64
none
elements with filters may be transparent
simon.fraser: review-, webkit.review.bot: commit-queue-
Archive of layout-test-results from gce-cr-linux-08 for chromium-linux-x86_64
none
use simple z-index:auto test, update a chromium pixel test simon.fraser: review+

Description Antti Koivisto 2013-03-23 09:27:41 PDT
The current obscuration test only covers immediate children. We can find more cases by looking deeper into descendants.
Comment 1 Antti Koivisto 2013-03-23 09:44:33 PDT
Created attachment 194707 [details]
patch
Comment 2 David Kilzer (:ddkilzer) 2013-03-23 10:37:17 PDT
Comment on attachment 194707 [details]
patch

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

> Source/WebCore/loader/cache/CachedImage.cpp:468
> +    fprintf(stderr, "CachedImage::animationAdvanced\n");

You probably want to remove this before committing.
Comment 3 Antti Koivisto 2013-03-23 16:46:24 PDT
Created attachment 194720 [details]
rebase with less printf
Comment 4 kov's GTK+ EWS bot 2013-03-23 16:59:26 PDT
Comment on attachment 194720 [details]
rebase with less printf

Attachment 194720 [details] did not pass gtk-ews (gtk):
Output: http://webkit-commit-queue.appspot.com/results/17193786
Comment 5 WebKit Review Bot 2013-03-24 00:52:04 PDT
Comment on attachment 194720 [details]
rebase with less printf

Attachment 194720 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://webkit-commit-queue.appspot.com/results/17197845

New failing tests:
css3/filters/custom/effect-custom-combined-missing.html
fast/replaced/border-radius-clip-content-edge.html
Comment 6 WebKit Review Bot 2013-03-24 00:52:08 PDT
Created attachment 194739 [details]
Archive of layout-test-results from gce-cr-linux-05 for chromium-linux-x86_64

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: gce-cr-linux-05  Port: chromium-linux-x86_64  Platform: Linux-3.3.8-gcg-201212281604-x86_64-with-GCEL-10.04-gcel_10.04
Comment 7 WebKit Review Bot 2013-03-24 02:13:00 PDT
Comment on attachment 194720 [details]
rebase with less printf

Attachment 194720 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://webkit-commit-queue.appspot.com/results/17295126

New failing tests:
css3/filters/custom/effect-custom-combined-missing.html
fast/replaced/border-radius-clip-content-edge.html
Comment 8 WebKit Review Bot 2013-03-24 02:13:04 PDT
Created attachment 194740 [details]
Archive of layout-test-results from gce-cr-linux-04 for chromium-linux-x86_64

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: gce-cr-linux-04  Port: chromium-linux-x86_64  Platform: Linux-3.3.8-gcg-201212281604-x86_64-with-GCEL-10.04-gcel_10.04
Comment 9 Antti Koivisto 2013-03-24 14:23:01 PDT
Created attachment 194767 [details]
elements with filters may be transparent
Comment 10 WebKit Review Bot 2013-03-24 16:10:01 PDT
Comment on attachment 194767 [details]
elements with filters may be transparent

Attachment 194767 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://webkit-commit-queue.appspot.com/results/17318088

New failing tests:
fast/replaced/border-radius-clip-content-edge.html
fast/css/font-family-pictograph.html
Comment 11 WebKit Review Bot 2013-03-24 16:10:05 PDT
Created attachment 194771 [details]
Archive of layout-test-results from gce-cr-linux-08 for chromium-linux-x86_64

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: gce-cr-linux-08  Port: chromium-linux-x86_64  Platform: Linux-3.3.8-gcg-201212281604-x86_64-with-GCEL-10.04-gcel_10.04
Comment 12 Antti Koivisto 2013-03-25 13:28:36 PDT
border-radius-clip-content-edge.html needs rebase of chromium image test results, the other failures don't look real.
Comment 13 Simon Fraser (smfr) 2013-03-26 15:37:11 PDT
Comment on attachment 194767 [details]
elements with filters may be transparent

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

> Source/WebCore/rendering/RenderBox.cpp:1220
> +        if (childLayer->zIndex() < 0)
> +            return false;

It's hard to me to know whether this test is reliable, without an explicit check for the childBox's stacking context being some specific ancestor. For example, what happens if the renderer we're checking for opaqueness is A here:

<div style="postion: absolute; z-index: 0"> <!-- stacking context -->
  <div style="postion: absolute; z-index: -2"> <!-- A -->
    <div style="postion: absolute; z-index: -1"></div>
  </div>
</div>
Comment 14 Antti Koivisto 2013-03-26 17:04:22 PDT
Created attachment 195191 [details]
use simple z-index:auto test, update a chromium pixel test
Comment 15 Simon Fraser (smfr) 2013-03-26 17:47:49 PDT
Comment on attachment 195191 [details]
use simple z-index:auto test, update a chromium pixel test

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

> LayoutTests/ChangeLog:12
> +        * platform/chromium-linux/fast/replaced/border-radius-clip-expected.png: rebased

Was this you?
Comment 16 Antti Koivisto 2013-03-26 18:00:00 PDT
(In reply to comment #15)
> > LayoutTests/ChangeLog:12
> > +        * platform/chromium-linux/fast/replaced/border-radius-clip-expected.png: rebased
> 
> Was this you?

Yeah, grabbed it from the bot-generated archive though I managed to replace a wrong file.
Comment 17 Antti Koivisto 2013-03-26 18:04:48 PDT
http://trac.webkit.org/changeset/146955 

(without the chromium border-radius-clip-content-edge.html pixel result rebase)