DescriptionProperly 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}
Committed: https://chromium.googlesource.com/chromium/src/+/3d74f72c743bef9d6fb48d06b7638fdf0cb7c5aa
Patch Set 1 #
Total comments: 2
Patch Set 2 : "don't" -> "do not" #Messages
Total messages: 15 (10 generated)
|