New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 889840 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

VisibleBoundsInVisualViewport ignores "element-clips"

Reported by hu...@vewd.com, Sep 27

Issue description

Actual:
VisibleBoundsInVisualViewport() can return a non-empty rect for invisible elements.

Expected:
When an element can't be seen through the visual viewport, VisibleBoundsInVisualViewport() should return an empty rect.

This happens when an element is clipped by an ancestor element's (think <div>) scrollport.

I found this during https://chromium-review.googlesource.com/c/chromium/src/+/1243246. 
The CL adds gtests (see spatial_navigation_test.cc) that demonstrates this. 
 
Labels: spatial-navigation

Sign in to add a comment