Re: [csswg-drafts] [css-position] Browsers treat auto margins as 0 when resolving sticky insets (#12852)

There are 2 WPT for this:
- `/css/css-position/sticky/position-sticky-margins-002.html`
- `/css/css-position/sticky/position-sticky-margins-003.html`

I don't particularly agree with Gecko's interpretation: https://hg-edge.mozilla.org/mozilla-central/rev/417324801b94

> The spec requires all 'auto' margin on the box are treated as zero when computing Static-Position Rectangle (https://drafts.csswg.org/css-position/#staticpos-rect) (See the requirement at the end of this section).

The static position is only used for abspos (including fixedpos). Not for relpos not stickypos, right?

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12852#issuecomment-4172662943 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 1 April 2026 20:04:55 UTC