Skip to content

[cssom-view-1] offsetParent produces incorrect results for position:fixed elements that behave like absolute #12352

Open
@dbaron

Description

@dbaron

There are a number of cases (such as for transforms) where position:fixed elements behave like position:absolute, rather than attaching to the viewport.

The spec for offsetParent (and presumably offsetTop/offsetLeft as well) doesn't account for this, but instead returns null for position:fixed in step 1.

According to the relevant Chromium bug Firefox does this correctly -- and it seems like it would be best if Chromium changed to match Firefox since that behavior makes the most sense.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions