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
The <dfn attribute for=HTMLElement>scrollParent</dfn> attribute must return the result of running these steps:
1593
+
1. If any of the following holds true, return null and terminate this algorithm:
1594
+
* The element does not have an associated [=CSS/box=].
1595
+
* The element is the [=root element=].
1596
+
* The element is <a>the <code>body</code> element</a>.
1597
+
* The element's computed value of the 'position' property is ''position/fixed'' and no ancestor establishes a fixed position [=containing block=].
1598
+
1. Let <var>ancestor</var> be the [=containing block=] of the element in the <a>flat tree</a> and repeat these substeps:
1599
+
1. If <var>ancestor</var> is the [=initial containing block=], return the {{Document/scrollingElement}} for the element's document if it is not <a>closed-shadow-hidden</a> from the element, otherwise reutrn null.
1600
+
1. If <var>ancestor</var> is not <a>closed-shadow-hidden</a> from the element, and is a <a>scroll container</a>, terminate this algorithm and return <var>ancestor</var>.
1601
+
1. If the computed value of the 'position' property of <var>ancestor</var> is ''position/fixed'', and no ancestor establishes a fixed position [=containing block=], terminate this algorithm and return null.
1602
+
1. Let <var>ancestor</var> be the [=containing block=] of <var>ancestor</var> in the <a>flat tree</a>.
1603
+
1591
1604
The <dfn attribute for=HTMLElement>offsetParent</dfn> attribute must return the result of running these steps:
1592
1605
1593
1606
1. If any of the following holds true return null and terminate this algorithm:
@@ -2075,6 +2088,7 @@ generally not listed.
2075
2088
* Introduced the {{VisualViewport}} API and related concepts
2076
2089
* Pinch zoom is now renamed to <a>scale factor</a>
2077
2090
* Added visibilityProperty, opacityProperty, and contentVisiblityAuto properties for {{Element/checkVisibility()}} method.
2091
+
* Added the {{HTMLElement/scrollParent}} attribute.
2078
2092
2079
2093
<h3 id='changes-from-2022-06-22' class=no-num>Changes From 22 June 2022</h3>
2080
2094
* 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