- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Fri, 29 Nov 2024 01:48:36 +0000
- To: public-css-archive@w3.org
So after thinking more, what browsers do actually makes sense. As per the steps I described in https://github.com/w3c/csswg-drafts/issues/11242#issuecomment-2487080181 - For `width: stretch` 1. Resolve `right: auto` to 0px to get a tentative IMCB which is 40px wide 2. Size the abspos into that tentative IMCB, treating an automatic size as fit-content. So in this case, we stretch to the 40px. 3. Get rid of the tentative IMCB 4. Resolve `right: auto` to whatever makes the actual IMCB be as big as (2), i.e. `right: 0px` 5. Assert: sizing the abspos into the actual IMCB from (4), treating an automatic size as fit-content, produces the same size as (2) - For `justify-self: stretch` 1. Resolve `right: auto` to 0px to get a tentative IMCB which is 40px wide 2. Size the abspos into that tentative IMCB, treating an automatic size as fit-content. So in this case, `clamp(20px, 40px, 20px) = 20px` wide. 3. Get rid of the tentative IMCB 4. Resolve `right: auto` to whatever makes the actual IMCB be as big as (2), i.e. `right: 20px` 5. Assert: sizing the abspos into the actual IMCB from (4), treating an automatic size as fit-content, produces the same size as (2). Effectively, `clamp(20px, 20px, 20px) = 20px`. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11293#issuecomment-2506933571 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 29 November 2024 01:48:37 UTC