Re: [csswg-drafts] [css-position-3] Section 3.5.1 Conflicts with CSS2 Positioning Behavior (#11258)

> For CSS2 developers, the auto inset remains auto.

I don't know what you mean here, CSS2 resolves `auto` too.

> CSS3 Positioning example

This is not a "lone `auto`" case. We know both insets in the inline axis, and none in the block one.

> If either inset property (left or right) on the relevant axis is auto, any auto margins resolve to 0. Therefore, for the #child element, both margin-left and margin-right resolve to 0.

Doesn't follow? As you just said, both insets are 0, so none of them is `auto`, so the margins don't resolve to 0.

> There is no information about the exact position of the #child element within the #parent

As I said several times, the position is decided by the self-alignment properties, once we know the size of the inset-modified containing block and the abspos.

> it is impossible to determine the size of the inset-modified containing block based on any specific offsets

How so? Here we know both insets so the inset-modified containing block is `200px - 0px - 0px = 200px` wide.


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


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

Received on Thursday, 21 November 2024 22:55:55 UTC