diff --git a/cssom-view-1/Overview.bs b/cssom-view-1/Overview.bs index 9522d10b8b4..23b99a691fa 100644 --- a/cssom-view-1/Overview.bs +++ b/cssom-view-1/Overview.bs @@ -1161,6 +1161,9 @@ dictionary ScrollIntoViewOptions : ScrollOptions { dictionary CheckVisibilityOptions { boolean checkOpacity = false; boolean checkVisibilityCSS = false; + boolean contentVisibilityAuto = false; + boolean opacityProperty = false; + boolean visibilityProperty = false; }; partial interface Element { @@ -1187,6 +1190,10 @@ partial interface Element { }; +Note: The {{CheckVisibilityOptions/checkOpacity}} and {{CheckVisibilityOptions/checkVisibilityCSS}} properties are historical names. +These properties have aliases that match the new naming scheme, +namely {{CheckVisibilityOptions/opacityProperty}} and {{CheckVisibilityOptions/visibilityProperty}}. + The getClientRects() method, when invoked, must return the result of the following algorithm: 1. If the element on which it was invoked does not have an associated [=CSS/box=] return an empty {{DOMRectList}} object and stop this algorithm. @@ -1246,15 +1253,25 @@ Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is 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, + 1. If either the {{CheckVisibilityOptions/opacityProperty}} + or the {{CheckVisibilityOptions/checkOpacity}} + dictionary members of |options| + are true, 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| - is true, + 1. If either the {{CheckVisibilityOptions/visibilityProperty}} + or the {{CheckVisibilityOptions/checkVisibilityCSS}} + dictionary members of |options| + are true, and |this| is [=invisible=], return false. + 1. If the {{CheckVisibilityOptions/contentVisibilityAuto}} dictionary member of |options| + is true + and an ancestor of |this| in the [=flat tree=] + [=skips its contents=] + due to ''content-visibility: auto'', + return false. 1. Return true. @@ -1984,6 +2001,7 @@ generally not listed.

Changes From 07 July 2022

* Introduced the {{VisualViewport}} API and related concepts * Pinch zoom is now renamed to scale factor +* Added visibilityProperty, opacityProperty, and contentVisiblityAuto properties for {{Element/checkVisibility()}} method.

Changes From 22 June 2022

* Adam Argyle moved the scrollend event from WICG overscroll-scrollend-events to [[CSSOM-VIEW-1]]