You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cssom-view/Overview.bs
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1071,6 +1071,7 @@ The <dfn method for=Element lt="scroll(options)|scroll(x, y)">scroll()</dfn> met
1071
1071
1. Let the {{ScrollToOptions/left}} dictionary member of <var>options</var> have the value <var>x</var>.
1072
1072
1. Let the {{ScrollToOptions/top}} dictionary member of <var>options</var> have the value <var>y</var>.
1073
1073
1. Let <var>document</var> be the element's <a>node document</a>.
1074
+
1. If <var>document</var> is not the <a>active document</a>, terminate these steps.
1074
1075
1. Let <var>window</var> be the value of <var>document</var>'s {{Document/defaultView}} attribute.
1075
1076
1. If <var>window</var> is null, terminate these steps.
1076
1077
1. If the element is the root element and <var>document</var> is in <a>quirks mode</a>, terminate these steps.
@@ -1110,6 +1111,7 @@ user agent must run these steps:
1110
1111
The <dfn attribute for=Element>scrollTop</dfn> attribute, on getting, must return the result of running these steps:
1111
1112
1112
1113
1. Let <var>document</var> be the element's <a>node document</a>.
1114
+
1. If <var>document</var> is not the <a>active document</a>, return zero and terminate these steps.
1113
1115
1. Let <var>window</var> be the value of <var>document</var>'s {{Document/defaultView}} attribute.
1114
1116
1. If <var>window</var> is null, return zero and terminate these steps.
1115
1117
1. If the element is the root element and <var>document</var> is in <a>quirks mode</a>, return zero and terminate these steps.
@@ -1123,6 +1125,7 @@ When setting the {{Element/scrollTop}} attribute these steps must be run:
1123
1125
1. Let <var>y</var> be the given value.
1124
1126
1. <a>Normalize non-finite values</a> for <var>y</var>.
1125
1127
1. Let <var>document</var> be the element's <a>node document</a>.
1128
+
1. If <var>document</var> is not the <a>active document</a>, terminate these steps.
1126
1129
1. Let <var>window</var> be the value of <var>document</var>'s {{Document/defaultView}} attribute.
1127
1130
1. If <var>window</var> is null, terminate these steps.
1128
1131
1. If the element is the root element and <var>document</var> is in <a>quirks mode</a>, terminate these steps.
@@ -1134,6 +1137,7 @@ When setting the {{Element/scrollTop}} attribute these steps must be run:
1134
1137
The <dfn attribute for=Element>scrollLeft</dfn> attribute, on getting, must return the result of running these steps:
1135
1138
1136
1139
1. Let <var>document</var> be the element's <a>node document</a>.
1140
+
1. If <var>document</var> is not the <a>active document</a>, return zero and terminate these steps.
1137
1141
1. Let <var>window</var> be the value of <var>document</var>'s {{Document/defaultView}} attribute.
1138
1142
1. If <var>window</var> is null, return zero and terminate these steps.
1139
1143
1. If the element is the root element and <var>document</var> is in <a>quirks mode</a>, return zero and terminate these steps.
@@ -1147,6 +1151,7 @@ When setting the {{Element/scrollLeft}} attribute these steps must be run:
1147
1151
1. Let <var>x</var> be the given value.
1148
1152
1. <a>Normalize non-finite values</a> for <var>x</var>.
1149
1153
1. Let <var>document</var> be the element's <a>node document</a>.
1154
+
1. If <var>document</var> is not the <a>active document</a>, terminate these steps.
1150
1155
1. Let <var>window</var> be the value of <var>document</var>'s {{Document/defaultView}} attribute.
1151
1156
1. If <var>window</var> is null, terminate these steps.
1152
1157
1. If the element is the root element and <var>document</var> is in <a>quirks mode</a>, terminate these steps.
@@ -1158,6 +1163,7 @@ When setting the {{Element/scrollLeft}} attribute these steps must be run:
1158
1163
The <dfn attribute for=Element>scrollWidth</dfn> attribute must return the result of running these steps:
1159
1164
1160
1165
1. Let <var>document</var> be the element's <a>node document</a>.
1166
+
1. If <var>document</var> is not the <a>active document</a>, return zero and terminate these steps.
1161
1167
1. Let <var>viewport width</var> be the width of the <a>viewport</a> excluding the width of the scroll bar, if any, or zero if there is no <a>viewport</a>.
1162
1168
1. If the element is the root element and <var>document</var> is not in <a>quirks mode</a> return max(<a>viewport</a><a>scrolling area</a> width, <var>viewport width</var>).
1163
1169
1. If the element is <a>the HTML <code>body</code> element</a>, <var>document</var> is in <a>quirks mode</a> and the element is not <a>potentially scrollable</a>, return max(<a>viewport</a><a>scrolling area</a> width, <var>viewport width</var>).
@@ -1167,6 +1173,7 @@ The <dfn attribute for=Element>scrollWidth</dfn> attribute must return the resul
1167
1173
The <dfn attribute for=Element>scrollHeight</dfn> attribute must return the result of running these steps:
1168
1174
1169
1175
1. Let <var>document</var> be the element's <a>node document</a>.
1176
+
1. If <var>document</var> is not the <a>active document</a>, return zero and terminate these steps.
1170
1177
1. Let <var>viewport height</var> be the height of the <a>viewport</a> excluding the height of the scroll bar, if any, or zero if there is no <a>viewport</a>.
1171
1178
1. If the element is the root element and <var>document</var> is not in <a>quirks mode</a> return max(<a>viewport</a><a>scrolling area</a> height, <var>viewport height</var>).
1172
1179
1. If the element is <a>the HTML <code>body</code> element</a>, <var>document</var> is in <a>quirks mode</a> and the element is not <a>potentially scrollable</a>, return max(<a>viewport</a><a>scrolling area</a> height, <var>viewport height</var>).
0 commit comments