Extend semantics of Intersection Observer API to handle webview visibility |
||||||||
Issue descriptionSteps to reproduce the problem: 1. open an app with a webview 2. scroll the webview offscreen 3. intersection observer still reports the webview as visible What is the expected behavior? Intersection observer should report the webview as not visible. What went wrong? In webviews, Intersection Observer will report that an element is fully visible even though the webview is off screen or scrolled out of view. We propose that the calculations and event notifications of Intersection Observer should incorporate the visibility of the webview, not just the top-level document viewport. This would enable ads in webviews to determine their visibility without any native-layer integration, and it would remove the messaging and polling-loop overhead of native-webview communication. Did this work before? No Does this work in other browsers? N/A Chrome version: 58.0.3029.110 Channel: stable OS Version: Flash Version:
,
May 25 2017
+danyao, ajuma.
,
May 25 2017
The Intersection Observer API isn't implemented at all on Chrome for iOS right now since it isn't yet implemented in WebKit. The ongoing work to implement this in WebKit is tracked at https://bugs.webkit.org/show_bug.cgi?id=159475.
,
May 25 2017
I'll mark this as External Dependency for now until we get more information back from Apple on their WebKit implementation status.
,
Jul 14 2017
,
May 8 2018
,
Oct 26
,
Oct 26
,
Oct 26
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by jochen@chromium.org
, May 25 2017Components: -Blink>JavaScript Blink