Skip to content

Commit 0d9927d

Browse files
authored
[cssom-view] Use flat tree instead of shadow-including tree for element.checkVisibility() (#9488)
`element.checkVisibility()` checks against CSS properties, which apply on the flat tree, not the shadow-including tree. Fixes #9486
1 parent 4a0f2e3 commit 0d9927d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cssom-view-1/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,12 +1243,12 @@ Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is
12431243

12441244
1. If |this| does not have an associated [=CSS/box=],
12451245
return false.
1246-
1. If a [=shadow-including ancestor=] of |this|
1246+
1. If an ancestor of |this| in the [=flat tree=]
12471247
has ''content-visibility: hidden'',
12481248
return false.
12491249
1. If the {{CheckVisibilityOptions/checkOpacity}} dictionary member of |options|
12501250
is true,
1251-
and |this|, or a [=shadow-including ancestor=] of |this|,
1251+
and |this|, or an ancestor of |this| in the [=flat tree=],
12521252
has a computed 'opacity' value of ''0'',
12531253
return false.
12541254
1. If the {{CheckVisibilityOptions/checkVisibilityCSS}} dictionary member of |options|

0 commit comments

Comments
 (0)