Open Bug 1844438 Opened 1 year ago

Ignore auto margins for sticky positioning

Categories

(Core :: Layout: Positioned, defect)

defect

Tracking

()

People

(Reporter: dholbert, Unassigned)

References

(Blocks 1 open bug)

Details

One sub-issue that was raised in https://github.com/w3c/csswg-drafts/issues/9052 : currently we honor auto margins as reducing the size of the sticky constraint box in sticky-positioning, but other browsers do not. We are technically correct per-spec, but it's a bit unhelpful since it effectively opts the element out of sticky positioning entirely (by reducing the sticky constraint box by all of the available space between the containing block edges and the element).

The CSSWG tentatively resolved to remove margins altogether from sticky positioning considerations, per bug 1844435, but while we wait to find out if that's web-compatible, we might want to take the intermediate step of not-honoring-auto-margins for interop & apparent CSSWG consensus based on the discussion.

You need to log in before you can comment on or make changes to this bug.