Re: [csswg-drafts] [CSS2][css-position-3] Negative containing blocks and `auto` margins (#11478)

The difference in axis behaviour in Blink is due to the (compat required) difference in auto margins. See:
https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/layout/absolute_utils.cc;l=276-279?q=is_block_direction&ss=chromium

(In the block-direction of the child auto-margins are "unsafe", in the inline-direction they are "safe").
https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=13386

Gecko & Blink match behaviour in the above case, Firefox appears to change its behaviour based on if the width/height & min-width/min-height are auto. E.g.
https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=13387

Safari starts to match Servo in the above case.

Blink is consistent in behaviour across the different cases.


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


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

Received on Monday, 13 January 2025 19:48:57 UTC