Properly check the visibility of elements in browsertests
No change in production logic. Visibility of elements must be checked by recursively checking the visibility of parent elements, since any element inside an invisible element will also be invisible. This issue does not present itself in the Desktop layout, because .hidden is defined differently (with display: none). Since the mobile layout defines it with opacity, we need to recursively check parents. It's not sufficient to check the opacity value itself, because CSS transitions may not have finished by the time we check. Instead, we simply check the CSS class and trust it to hide things properly. BUG=716542 Review-Url: https://codereview.chromium.org/2845423002 Cr-Commit-Position: refs/heads/master@{#468111}
Showing
Please register or sign in to comment