OffsetParentNewSpecBehaviorEnabled
Control the new behavior of HTMLElement.offsetParent - OffsetParentNewSpecBehaviorEnabled
The HTMLElement.offsetParent API is being changed in 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.
- True = New offsetParent behavior will be used.
- False = Old offsetParent behavior will be used.
- None = New offsetParent behavior will be used by default.
Data Type:
Boolean
Supported features:
- Dynamic Policy Refresh: True
- Per Profile: True