Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Issue 2375203003: Parent stacking context of a backdrop filter should isolate itself (Closed)

Created:
4 years, 2 months ago by trchen
Modified:
4 years, 2 months ago
Reviewers:
pdr., Stephen White
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, dcheng, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Parent stacking context of a backdrop filter should isolate itself As spec'd by https://drafts.fxtf.org/filters-2/#BackdropFilterProperty https://drafts.fxtf.org/filters/#valdef-in-backgroundimage BUG=497522 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/css3/filters/backdrop-filter-isolation.html View 1 chunk +7 lines, -0 lines 2 comments Download
A third_party/WebKit/LayoutTests/css3/filters/backdrop-filter-isolation-expected.html View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositingRequirementsUpdater.cpp View 1 chunk +1 line, -1 line 2 comments Download

Messages

Total messages: 15 (8 generated)
trchen
BIG FAT WARNING: This CL can create compatibility issues against WebKit. WebKit behavior is erratic. ...
4 years, 2 months ago (2016-09-29 00:33:51 UTC) #5
pdr.
Drive-by review https://codereview.chromium.org/2375203003/diff/1/third_party/WebKit/LayoutTests/css3/filters/backdrop-filter-isolation.html File third_party/WebKit/LayoutTests/css3/filters/backdrop-filter-isolation.html (right): https://codereview.chromium.org/2375203003/diff/1/third_party/WebKit/LayoutTests/css3/filters/backdrop-filter-isolation.html#newcode4 third_party/WebKit/LayoutTests/css3/filters/backdrop-filter-isolation.html:4: <div style="width:100px; height:100px; backdrop-filter:invert(1);"></div> Does this test ...
4 years, 2 months ago (2016-09-29 21:54:49 UTC) #9
trchen
https://codereview.chromium.org/2375203003/diff/1/third_party/WebKit/LayoutTests/css3/filters/backdrop-filter-isolation.html File third_party/WebKit/LayoutTests/css3/filters/backdrop-filter-isolation.html (right): https://codereview.chromium.org/2375203003/diff/1/third_party/WebKit/LayoutTests/css3/filters/backdrop-filter-isolation.html#newcode4 third_party/WebKit/LayoutTests/css3/filters/backdrop-filter-isolation.html:4: <div style="width:100px; height:100px; backdrop-filter:invert(1);"></div> On 2016/09/29 21:54:49, pdr. wrote: ...
4 years, 2 months ago (2016-09-29 22:23:34 UTC) #10
trchen
WebKit folks clarified that the spec needs to be revised to match actual behavior. Their ...
4 years, 2 months ago (2016-09-30 00:43:04 UTC) #12
pdr.
On 2016/09/30 at 00:43:04, trchen wrote: > WebKit folks clarified that the spec needs to ...
4 years, 2 months ago (2016-09-30 01:57:13 UTC) #13
trchen
On 2016/09/30 01:57:13, pdr. wrote: > On 2016/09/30 at 00:43:04, trchen wrote: > > WebKit ...
4 years, 2 months ago (2016-09-30 17:21:23 UTC) #14
Stephen White
4 years, 2 months ago (2016-09-30 18:05:28 UTC) #15
Message was sent while issue was closed.
On 2016/09/30 17:21:23, trchen wrote:
> On 2016/09/30 01:57:13, pdr. wrote:
> > On 2016/09/30 at 00:43:04, trchen wrote:
> > > WebKit folks clarified that the spec needs to be revised to match actual
> > behavior.
> > > 
> > > Their intended behavior can't be easily represented in SPv2 data model.
> > Probably need a special object like BackdropDrawingDisplayItem. Let's punt
it
> > until other things are finished.
> > 
> > Can you explain why a little more why it doesn't work with spv2? Could spv2
> use
> > a filter?
> 
> Regular CSS filter property is fine. Advanced SVG filter (did we support it
> anyway?) will be subject to the same problem.
> 
> It won't work because the backdrop filter needed some way to read back from
> unfinished render surfaces. In SPv1 it is indicated using a layer property,
then
> the GL renderer would do special things when it sees quads from the layer.
(And
> this caused a know bug! Backdrop filter should be bounded by the border box,
not
> the visual rect of whatever composited into this layer.)
> 
> Actually now I think in SPv2 we can achieve similar thing using a foreign
layer.
> Perhaps we can make it a convention to use foreign layer for all irregular
> drawing display items?
> 
> > I didn't mean to step on your review. If this makes it better for spv1, lets
> go
> > ahead with the patch.
> 
> Nah, the "corrected" behavior is not desired by WebKit/spec authors.

Thanks for reaching out to WebKit to clarify.

Tangentially,, I'd like to reserve the possibility of implementing a "software"
(non-cc) path for backdrop-filter 
at some point. This would bring it in line with the (foreground) filters
implementation, and would mean we'd
lean less on cc for this feature.

Powered by Google App Engine
This is Rietveld 408576698