This is a container issue for the effort to improve performance of the visibility algorithm, especially when the application under test has a very complex DOM.
The new approach uses standard browser methods to check basic visibility, and a point sampling algorithm to test complex visibility such as positioning, clipping, and so forth. The proof of concept is laid out in this PR: #32801