VisibleBoundsInVisualViewport() reports a visible iframe's body as invisible
Reported by
hu...@vewd.com,
Nov 6
|
|
Issue description
Unit test that fails:
TEST_F(SpatialNavigationTest, ScrollableIframe) {
SetBodyInnerHTML(
"<!DOCTYPE html>"
"<style>"
" iframe {"
" width: 100px;"
" height: 100px;"
" }"
"</style>"
"<iframe id='iframe'></iframe>");
SetChildFrameHTML(
"<!DOCTYPE html>"
"<a style='display: block; margin-top: 200px'>clipped</a>");
EXPECT_FALSE(
ChildDocument().body()->VisibleBoundsInVisualViewport().IsEmpty()); // fail!
}
Found during discussion of https://chromium-review.googlesource.com/c/chromium/src/+/960185/12//COMMIT_MSG.
|
|
►
Sign in to add a comment |
|