<- Chrome Settings Library

OffsetParentNewSpecBehaviorEnabled

Control the new behavior of HTMLElement.offsetParent
Last updated October 8, 2024
Deprecated

The Google Chrome in order to comply with changes that have been made in Firefox and Safari. This policy brings back the old behavior until M120. The new behavior may break some Google Chrome-only websites which use HTMLElement.offsetParent, HTMLElement.offsetTop, or HTMLElement.offsetLeft in conjunction with Shadow DOM. Here are some polyfills which bring back the old behavior to help migrate https://github.com/josepharhar/offsetparent-polyfills If this policy is enabled, then the new behavior will be used. If this policy is disabled, then the old behavior will be used. If this policy is not set, then the new behavior will be used just like the rest of chromium users.

Supported On:
Platform Start End
Android 109 120
Chrome (Windows, Mac, Linux) 109 120
ChromeOS 109 120
webview_android 109 120
Example value:

true

Features: