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-1/Overview.bs
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1645,14 +1645,16 @@ The <dfn attribute for=HTMLElement>offsetParent</dfn> attribute must return the
1645
1645
* The element does not have an associated [=CSS/box=].
1646
1646
* The element is the [=root element=].
1647
1647
* The element is <a>the <code>body</code> element</a>.
1648
-
* The element's computed value of the 'position' property is ''position/fixed''.
1648
+
* The element's computed value of the 'position' property is ''position/fixed'' and no ancestor establishes a fixed position [=containing block=].
1649
1649
1. Let <var>ancestor</var> be the parent of the element in the <a>flat tree</a> and repeat these substeps:
1650
-
1. If <var>ancestor</var> is <a>closed-shadow-hidden</a> from the element and its computed value of the 'position' property is ''position/fixed'', terminate this algorithm and return null.
1650
+
1. If <var>ancestor</var> is <a>closed-shadow-hidden</a> from the element, its computed value of the 'position' property is ''position/fixed'', and no ancestor establishes a fixed position [=containing block=], terminate this algorithm and return null.
1651
1651
1. If <var>ancestor</var> is not <a>closed-shadow-hidden</a> from the element and satisfies at least one of the following, terminate this algorithm and return <var>ancestor</var>.
1652
-
* <var>ancestor</var> is a containing block of absolutely-positioned descendants (regardless of whether there are any absolutely-positioned descendants).
1652
+
* The element is in a fixed position [=containing block=], and <var>ancestor</var> is a containing block for fixed-positioned descendants.
1653
+
* The element is not in a fixed position [=containing block=], and:
1654
+
* <var>ancestor</var> is a containing block of absolutely-positioned descendants (regardless of whether there are any absolutely-positioned descendants).
1655
+
* It is <a>the <code>body</code> element</a>.
1656
+
* The computed value of the 'position' property of the element is ''static'' and the ancestor is one of the following <a>HTML elements</a>: <code>td</code>, <code>th</code>, or <code>table</code>.
1653
1657
* The element has a different [=effective zoom=] than <var>ancestor</var>.
1654
-
* It is <a>the <code>body</code> element</a>.
1655
-
* The computed value of the 'position' property of the element is ''static'' and the ancestor is one of the following <a>HTML elements</a>: <code>td</code>, <code>th</code>, or <code>table</code>.
1656
1658
1. If there is no more parent of <var>ancestor</var> in the <a>flat tree</a>, terminate this algorithm and return null.
1657
1659
1. Let <var>ancestor</var> be the parent of <var>ancestor</var> in the <a>flat tree</a>.
0 commit comments