Re: [csswg-drafts] [css-sizing-4] Aspect ratio supplying the missing intrinsic size axis is weird (#5563)

Here's the relevant SVG spec text: https://svgwg.org/svg2-draft/coords.html#SizingSVGInCSS

It requires that an intrinsic aspect ratio is calculated from explicit width & height (if they're in absolute units), but does not say anything about calculating sizes from the aspect ratio. We should probably update the wording to talk about "natural" dimensions, not "intrinsic", to match the new CSS text.

The only place where the intrinsic/natural sizes could be exposed directly, as far as I know, is in the `naturalHeight` and `naturalWidth` properties of an image element. And browsers are already inconsistent in what they report here: Chrome calculates out a value using the CSS method; Firefox reports 0 for null values. There's an HTML bug somewhere about fixing this...

CSS, as Fantasai notes, will take an aspect ratio + a single explicit size and automatically calculate out the other size dimension. So for CSS layout it is effectively the same, but the language should be consistent (e.g., natural vs intrinsic). 

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


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

Received on Friday, 12 March 2021 03:35:07 UTC