Back to Chromium

Fixed Position Offset Parent

third_party/blink/web_tests/fast/dom/Element/fixed-position-offset-parent.html

150.0.7829.2580 B
Original Source

This test checks if offsetParent is always null when accessed from the HTML <body> and from elements with CSS property position:fixed. To ensure values match layout, this test also checks offsetTop and offsetLeft.

In addition to the HTML <body>, two elements with CSS property position:fixed are tested: One within the body, and one within an element with CSS property position:absolute.

Finally, a static- and relative-positioned element are tested for sanity and spec adherence.

Expected values are parenthesized. Test has passed if all values match.