@@ -41,12 +41,14 @@ urlPrefix: https://drafts.csswg.org/cssom/
41
41
urlPrefix: https://www.w3.org/TR/CSS21/visuren.html
42
42
type: dfn; text: anonymous block box; url: #anonymous-block-level
43
43
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
44
45
</pre>
45
46
46
47
<pre class='link-defaults'>
47
48
spec:css-display-3; type:value; for:display; text:table
48
49
spec:css-position-3; type:property; text:position
49
50
spec:dom; type:interface; text:Document
51
+ spec:html; type:dfn; text: inert
50
52
</pre>
51
53
52
54
<style>
@@ -1040,7 +1042,10 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
1040
1042
};
1041
1043
1042
1044
dictionary IsVisibleOptions {
1043
-
1045
+ bool checkAriaHidden = false;
1046
+ bool checkInert = false;
1047
+ bool checkOpacity = false;
1048
+ bool checkVisibilityCSS = false;
1044
1049
};
1045
1050
1046
1051
partial interface Element {
@@ -1109,10 +1114,26 @@ Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is
1109
1114
1110
1115
1. If |this| does not have an associated [=layout box=] ,
1111
1116
return false.
1112
- 2 . If |this|, or a [=shadow-inclusive ancestor=] of |this|,
1117
+ 1 . If |this|, or a [=shadow-inclusive ancestor=] of |this|,
1113
1118
has ''content-visibility: hidden'' ,
1114
1119
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.
1116
1137
</div>
1117
1138
1118
1139
The <dfn method for=Element caniuse=scrollintoview>scrollIntoView(<var>arg</var>)</dfn> method must run these steps:
0 commit comments