#29931 - Modified the docs to ble clearer on what is visible or not visible.

This commit is contained in:
Thorleif Jacobsen 2024-03-15 09:58:57 +01:00 committed by GitHub
parent 94348bb3c5
commit ea184f7277
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,9 +83,9 @@ Learn more in the [assertions guide](./test-assertions.md).
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.
* **Not visible:** Elements of zero size.
* **Not visible:** Elements with `display:none`.
* **Visible:** Elements with `opacity:0`.
## Stable