docs: note that opacity:0 still counts as visible element (#28965)

Closes #28954.
This commit is contained in:
Dmitry Gozman 2024-01-12 09:38:23 -08:00 committed by GitHub
parent 90665ef056
commit 37634df0c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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