Skip to content

[CSS-22][CSS-21][CSS3] Stacking context complicated #2326

Open
@Nadya678

Description

@Nadya678

Why position:fixed and position:sticky create stacking context but the position:relative and absolute don't?
Why the stacking context definition was changed between CSS2.2 and CSS2.1?

This is too complicated for the moment. Many styles with non-default value create stacking context but in many cases stacking context is created only for part of possible values.

BTW. sticky positioning is described on MDN as working similar to relative. If sticky is shown like "fixed" the width is still relative to containing block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions