Skip to content

Commit

Permalink
docs: note that opacity:0 still counts as visible element (#28965)
Browse files Browse the repository at this point in the history
Closes #28954.
  • Loading branch information
dgozman authored Jan 12, 2024
1 parent 90665ef commit 37634df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/src/actionability.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 37634df

Please sign in to comment.