Skip to content

Commit b025b9f

Browse files
committed
[cssom-view] Per WG resolution, isVisible->checkVisibility
1 parent af74a3a commit b025b9f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cssom-view-1/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
10141014
ScrollLogicalPosition inline = "nearest";
10151015
};
10161016

1017-
dictionary IsVisibleOptions {
1017+
dictionary CheckVisibilityOptions {
10181018
boolean checkOpacity = false;
10191019
boolean checkVisibilityCSS = false;
10201020
};
@@ -1023,7 +1023,7 @@ partial interface Element {
10231023
DOMRectList getClientRects();
10241024
[NewObject] DOMRect getBoundingClientRect();
10251025

1026-
boolean isVisible(optional IsVisibleOptions options = {});
1026+
boolean checkVisibility(optional CheckVisibilityOptions options = {});
10271027

10281028
undefined scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg = {});
10291029
undefined scroll(optional ScrollToOptions options = {});
@@ -1079,15 +1079,15 @@ Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is
10791079
</div>
10801080

10811081
<div algorithm>
1082-
Note: The {{Element/isVisible()}} method
1082+
Note: The {{Element/checkVisibility()}} method
10831083
provides a set of simple checks
10841084
for whether an element is potentially "visible".
10851085
It defaults to a very simple and straightforward method
10861086
based on the [=box tree=],
10871087
but allows for several additional checks to be opted into,
10881088
depending on what precise notion of "visibility" is desired.
10891089

1090-
The <dfn method for=Element>isVisible(|options|)</dfn> method
1090+
The <dfn method for=Element>checkVisibility(|options|)</dfn> method
10911091
must run these steps,
10921092
when called on an element |this|:
10931093

@@ -1096,12 +1096,12 @@ Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is
10961096
1. If a [=shadow-including ancestor=] of |this|
10971097
has ''content-visibility: hidden'',
10981098
return false.
1099-
1. If the {{IsVisibleOptions/checkOpacity}} dictionary member of |options|
1099+
1. If the {{CheckVisibilityOptions/checkOpacity}} dictionary member of |options|
11001100
is true,
11011101
and |this|, or a [=shadow-including ancestor=] of |this|,
11021102
has a computed 'opacity' value of ''0'',
11031103
return false.
1104-
1. If the {{IsVisibleOptions/checkVisibilityCSS}} dictionary member of |options|
1104+
1. If the {{CheckVisibilityOptions/checkVisibilityCSS}} dictionary member of |options|
11051105
is true,
11061106
and |this| is <l spec=css-display>[=invisible=]</l>,
11071107
return false.

0 commit comments

Comments
 (0)