Skip to content

Commit

Permalink
[cssom-view] Use flat tree instead of shadow-including tree for eleme…
Browse files Browse the repository at this point in the history
…nt.checkVisibility() (#9488)

`element.checkVisibility()` checks against CSS properties, which apply on the flat tree, not the shadow-including tree.

Fixes #9486
  • Loading branch information
nt1m authored Oct 18, 2023
1 parent 4a0f2e3 commit 0d9927d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cssom-view-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1243,12 +1243,12 @@ Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is

1. If |this| does not have an associated [=CSS/box=],
return false.
1. If a [=shadow-including ancestor=] of |this|
1. If an ancestor of |this| in the [=flat tree=]
has ''content-visibility: hidden'',
return false.
1. If the {{CheckVisibilityOptions/checkOpacity}} dictionary member of |options|
is true,
and |this|, or a [=shadow-including ancestor=] of |this|,
and |this|, or an ancestor of |this| in the [=flat tree=],
has a computed 'opacity' value of ''0'',
return false.
1. If the {{CheckVisibilityOptions/checkVisibilityCSS}} dictionary member of |options|
Expand Down

0 comments on commit 0d9927d

Please sign in to comment.