Skip to content

Commit e29b978

Browse files
vmpstrsvgeesus
authored andcommitted
Add more checkVisibility dictinoary properties
1 parent 837d215 commit e29b978

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

cssom-view-1/Overview.bs

+18-4
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,9 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
11611161
dictionary CheckVisibilityOptions {
11621162
boolean checkOpacity = false;
11631163
boolean checkVisibilityCSS = false;
1164+
boolean contentVisibilityAuto = false;
1165+
boolean opacityProperty = false;
1166+
boolean visibilityProperty = false;
11641167
};
11651168

11661169
partial interface Element {
@@ -1246,15 +1249,25 @@ Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is
12461249
1. If an ancestor of |this| in the [=flat tree=]
12471250
has ''content-visibility: hidden'',
12481251
return false.
1249-
1. If the {{CheckVisibilityOptions/checkOpacity}} dictionary member of |options|
1250-
is true,
1252+
1. If either the {{CheckVisibilityOptions/checkOpacity}}
1253+
or the {{CheckVisibilityOptions/opacityProperty}}
1254+
dictionary members of |options|
1255+
are true,
12511256
and |this|, or an ancestor of |this| in the [=flat tree=],
12521257
has a computed 'opacity' value of ''0'',
12531258
return false.
1254-
1. If the {{CheckVisibilityOptions/checkVisibilityCSS}} dictionary member of |options|
1255-
is true,
1259+
1. If either the {{CheckVisibilityOptions/checkVisibilityCSS}}
1260+
or the {{CheckVisibilityOptions/visibilityProperty}}
1261+
dictionary members of |options|
1262+
are true,
12561263
and |this| is <l spec=css-display>[=invisible=]</l>,
12571264
return false.
1265+
1. If the {{CheckVisibilityOptions/contentVisibilityAuto}} dictionary member of |options|
1266+
is true
1267+
and an ancestor of |this| in the [=flat tree=]
1268+
[=skips its contents=]
1269+
due to ''content-visibility: auto'',
1270+
return false.
12581271
1. Return true.
12591272
</div>
12601273

@@ -1984,6 +1997,7 @@ generally not listed.
19841997
<h3 id='changes-from-2022-07-07' class=no-num>Changes From 07 July 2022</h3>
19851998
* Introduced the {{VisualViewport}} API and related concepts
19861999
* Pinch zoom is now renamed to <a>scale factor</a>
2000+
* Added visibilityProperty, opacityProperty, and contentVisiblityAuto properties for {{Element/checkVisibility()}} method.
19872001

19882002
<h3 id='changes-from-2022-06-22' class=no-num>Changes From 22 June 2022</h3>
19892003
* Adam Argyle moved the <a event>scrollend</a> event from <a href="https://wicg.github.io/overscroll-scrollend-events/">WICG overscroll-scrollend-events</a> to [[CSSOM-VIEW-1]]

0 commit comments

Comments
 (0)