From 37634df0c4620d782dc9fce82fba63cea4dcf1a3 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Fri, 12 Jan 2024 09:38:23 -0800 Subject: [PATCH] docs: note that opacity:0 still counts as visible element (#28965) Closes #28954. --- docs/src/actionability.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/src/actionability.md b/docs/src/actionability.md index 35ab93bccc..337e5fd344 100644 --- a/docs/src/actionability.md +++ b/docs/src/actionability.md @@ -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