Re: [csswg-drafts] [css2] Clarify 10.6.2: height with auto sizing, intrinsic ratio, and intrinsic height (#12254)

> I don't understand your question. In your testcase the element is a non-replaced inline box so the spec section is not relevant. 

Why are you saying it's "non-replaced"? Sure, the `<img />`  doesn't have a `src` set, but I didn't see anything in the spec that says this makes it "non-replaced".

>Using `aspect-ratio` it's possible to have a preferred aspect ratio (but not a natural aspect ratio) without natural sizes. 

My question is in the context of CSS2, where the intrinsic ratio is equivalent to the "natural aspect ratio":

Question: "How can an element have an intrinsic (**natural**) ratio if it has `height:auto`/`width:auto` and no intrinsic height or width to begin with? In that case, what’s the point of this whole clause?"

In my test case, I used `aspect-ratio` because I thought it could enforce a "natural ratio." But as you pointed out, `aspect-ratio` isn't part of CSS2, so this entire clause should be interpreted without that property in mind.

> > What is the min-content or max-content size of a replaced element that derives its 'intrinsic size' from its natural dimensions?
> 
> It can be the natural size in that axis, or it can be a size from the other axis transferred thru the preferred aspect ratio, or a default object size.

But what does this have to do with the terms "min-content" and "max-content"? As far as I understand, for replaced elements, these values are always the same, determined by the natural size or the size transferred via the aspect ratio. 
The concepts of "min-content" and "max-content" don’t really seem to apply to replaced elements that derive their intrinsic size from their natural dimensions.


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


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

Received on Wednesday, 4 June 2025 08:45:56 UTC