New issue
Advanced search Search tips

Issue 878611 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 827639



Sign in to add a comment

IntersectionObserver V2 needs to detect occlusion from box-shadow and text-shadow

Project Member Reported by szager@google.com, Aug 28

Issue description

Demo: http://jsfiddle.net/dpz105s4/

The shadow area is not used during hit testing, so IOv2 will not report the iframe content as occluded.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Sep 12

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/505ab0512136f9b13c025775030c58fcb2d8a7a6

commit 505ab0512136f9b13c025775030c58fcb2d8a7a6
Author: Stefan Zager <szager@chromium.org>
Date: Wed Sep 12 03:13:26 2018

[IntersectionObserver] Support hit testing visual overflow

An element can be occluded by the visual overflow of another element,
for example if the occluding element has CSS box-shadow or
text-shadow. Add support for hit testing objects' visual overflow,
and use it in HitTestForOcclusion.

Also, make sure that the intersection observer algorithm is scheduled
to run when visual overflow changes.

BUG=878611
R=chrishtr@chromium.org

Change-Id: I9d65802e016a6d1b73f3398cf3054be5044d586f
Reviewed-on: https://chromium-review.googlesource.com/1212452
Commit-Queue: Stefan Zager <szager@chromium.org>
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#590584}
[add] https://crrev.com/505ab0512136f9b13c025775030c58fcb2d8a7a6/third_party/WebKit/LayoutTests/intersection-observer/v2/box-shadow.html
[add] https://crrev.com/505ab0512136f9b13c025775030c58fcb2d8a7a6/third_party/WebKit/LayoutTests/intersection-observer/v2/text-shadow.html
[modify] https://crrev.com/505ab0512136f9b13c025775030c58fcb2d8a7a6/third_party/blink/renderer/core/layout/hit_test_request.h
[modify] https://crrev.com/505ab0512136f9b13c025775030c58fcb2d8a7a6/third_party/blink/renderer/core/layout/layout_block.cc
[modify] https://crrev.com/505ab0512136f9b13c025775030c58fcb2d8a7a6/third_party/blink/renderer/core/layout/layout_box.cc
[modify] https://crrev.com/505ab0512136f9b13c025775030c58fcb2d8a7a6/third_party/blink/renderer/core/layout/layout_object.cc

Sign in to add a comment