- From: gitspeaks via GitHub <sysbot+gh@w3.org>
- Date: Tue, 04 Mar 2025 23:25:29 +0000
- To: public-css-archive@w3.org
Since we already have ` width: 300px` on the img, doesn't that mean we're setting a specific width with height set to `auto`? That means, per the spec, if height is `auto` and none of the special conditions apply, the height is computed as the largest rectangle with a 2:1 ratio that doesn't go over 150px in height or exceed the device width. So, why worry about what HTML says about an element’s natural sizes or aspect ratio when we’ve already got all the details: a) it's a replaced element, b) it has a preferred width, and c) there's a default behavior for height when the aspect ratio is missing (since there's no actual image)? -- GitHub Notification of comment by gitspeaks Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11806#issuecomment-2699228120 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 4 March 2025 23:25:30 UTC