mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs: note that opacity:0 still counts as visible element (#28965)
Closes #28954.
This commit is contained in:
parent
90665ef056
commit
37634df0c4
@ -80,7 +80,12 @@ Learn more in the [assertions guide](./test-assertions.md).
|
||||
|
||||
## Visible
|
||||
|
||||
Element is considered visible when it has non-empty bounding box and does not have `visibility:hidden` computed style. Note that elements of zero size or with `display:none` are not considered visible.
|
||||
Element is considered visible when it has non-empty bounding box and does not have `visibility:hidden` computed style.
|
||||
|
||||
Note that according to this definition:
|
||||
* Elements of zero size **are not** considered visible.
|
||||
* Elements with `display:none` **are not** considered visible.
|
||||
* Elements with `opacity:0` **are** considered visible.
|
||||
|
||||
## Stable
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user