Skip to content

Commit 64b6a41

Browse files
committed
[cssom-view-1] Specify the check* options for isVisible(). w3c#6850
1 parent 6366cd3 commit 64b6a41

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

cssom-view-1/Overview.bs

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ urlPrefix: https://drafts.csswg.org/cssom/
4141
urlPrefix: https://www.w3.org/TR/CSS21/visuren.html
4242
type: dfn; text: anonymous block box; url: #anonymous-block-level
4343
url: https://drafts.csswg.org/mediaqueries-4/#mf-colors; type: dfn; text: color media query
44+
url: https://www.w3.org/TR/wai-aria-1.1/#dfn-hidden; type: dfn; text: hidden; spec: wai-aria-1
4445
</pre>
4546

4647
<pre class='link-defaults'>
4748
spec:css-display-3; type:value; for:display; text:table
4849
spec:css-position-3; type:property; text:position
4950
spec:dom; type:interface; text:Document
51+
spec:html; type:dfn; text: inert
5052
</pre>
5153

5254
<style>
@@ -1040,7 +1042,10 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
10401042
};
10411043

10421044
dictionary IsVisibleOptions {
1043-
1045+
bool checkAriaHidden = false;
1046+
bool checkInert = false;
1047+
bool checkOpacity = false;
1048+
bool checkVisibilityCSS = false;
10441049
};
10451050

10461051
partial interface Element {
@@ -1109,10 +1114,26 @@ Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is
11091114

11101115
1. If |this| does not have an associated [=layout box=],
11111116
return false.
1112-
2. If |this|, or a [=shadow-inclusive ancestor=] of |this|,
1117+
1. If |this|, or a [=shadow-inclusive ancestor=] of |this|,
11131118
has ''content-visibility: hidden'',
11141119
return false.
1115-
3. Return true.
1120+
1. If the {{IsVisibleOptions/checkAriaHidden}} dictionary member of |options|
1121+
is true,
1122+
and |this| is [=hidden=] (in the ARIA sense),
1123+
return false.
1124+
1. If the {{IsVisibleOptions/checkInert}} dictionary member of |options|
1125+
is true,
1126+
and |this| is [=inert=],
1127+
return false.
1128+
1. If the {{IsVisibleOptions/checkOpacity}} dictionary member of |options|
1129+
is true,
1130+
and the computed value of 'opacity' on |this| is ''0'',
1131+
return false.
1132+
1. If the {{IsVisibleOptions/checkVisibilityCSS}} dictionary member of |options|
1133+
is true,
1134+
and |this| is [=invisible=],
1135+
return false.
1136+
1. Return true.
11161137
</div>
11171138

11181139
The <dfn method for=Element caniuse=scrollintoview>scrollIntoView(<var>arg</var>)</dfn> method must run these steps:

0 commit comments

Comments
 (0)