- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Mon, 19 Oct 2020 21:01:06 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `How widely should HTML's 'aspect-ratio' presentational attribute be applied?`, and agreed to the following: * `RESOLVED: apply aspect ratio pres hint to img, <input type=image>, video, canvas` <details><summary>The full IRC log of that discussion</summary> <heycam> Topic: How widely should HTML's 'aspect-ratio' presentational attribute be applied?<br> <heycam> github: https://github.com/w3c/csswg-drafts/issues/5608<br> <heycam> TabAtkins: Emilio brought up in the HTML spec that it would make sense to make the aspect-ratio attribute integration from width/height setting intrinsic size, to being them setting an intrinsic ratio pres hint<br> <heycam> ... I wrote the spec text for it<br> <heycam> ... Domenic asked which elemetns it should apply to<br> <heycam> ... prev spec text applied to img specifically<br> <heycam> ... (side discussion about <picture>)<br> <heycam> ... but there are other elements that we do use width/height on<br> <heycam> ... video, possibly embed/object<br> <heycam> ... canvas, <input type=image><br> <jensimmons> q<br> <jensimmons> q+<br> <heycam> ... first question, does it make sense to widen the spec text from the previous img/picture only, and if so, which elements should we expand it to?<br> <heycam> ... I think we should, and go with elika's list<br> <heycam> ... embed/object applying an intrinsic ratio doesn't always apply)<br> <emilio> q+<br> <heycam> jensimmons: to remind everyone, this is about improving the experience for users while the page is loading<br> <heycam> ... the intention is that it has no affect on layout after these assets have loaded<br> <Rossen_> ack jensimmons<br> <heycam> ... once an image has loaded, it should get the same layout it would've had<br> <heycam> ... should work the same way for video<br> <heycam> ... they do have an intrinsic aspect ratio<br> <heycam> ... should apply to any HTML element where this is true<br> <heycam> ... so does not apply to a typical iframe, since they don't have intrinsic aspect ratio<br> <heycam> ... it's also true that embed/object can sometimes have an intrinsic aspect ratio<br> <florian> q+<br> <heycam> ... but if there are complications it's not critical<br> <heycam> emilio: I agree with this<br> <Rossen_> ack emilio<br> <heycam> ... when we initially implemented this for img, we still didn't have the compat requirements<br> <heycam> ... I think this is pretty reasonable<br> <heycam> florian: makes a lot of sense to me<br> <Rossen_> ack florian<br> <heycam> ... given the text you're replacing didn't apply to these things, is the compat story different for img and the things that are like it?<br> <heycam> ... or it all falls into the same bucket?<br> <heycam> emilio: when we did it for img, we override the aspect ratio, but people put wrong values<br> <heycam> ... the auto value is like a low priority hint<br> <heycam> ... I think the compat impact is going to be extremely low<br> <heycam> florian: canvas loads a bit differently from these other things<br> <heycam> ... you don't load an external file<br> <heycam> TabAtkins: intrinsic size is based on the backing store<br> <heycam> florian: script controlled? and so if the script hasn't run yet it's a similar situation?<br> <heycam> myles: it's based on the attributes on the element<br> <heycam> TabAtkins: you're right<br> <Rossen_> q?<br> <heycam> ... but it would still be consistent with images<br> <heycam> florian: less useful but still doesn't hurt<br> <heycam> Rossen_: in the case of picture/srcset, does it come from the first image?<br> <heycam> emilio: I think it would be the actual <img> inside the picture<br> <heycam> ... but there's another PR to make width/height apply to src<br> <heycam> ... there's no precedent for other elements' attributes affecting intrinsics<br> <heycam> TabAtkins: but that's behind discussed elsewhere<br> <heycam> s/behind/being/<br> <TabAtkins> img, input type=image, video, canvas<br> <heycam> RESOLVED: apply aspect ratio pres hint to img, <input type=image>, video, canvas<br> <TabAtkins> <br dur=10min> (back at :10 after your hour)<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5608#issuecomment-712439461 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 19 October 2020 21:01:08 UTC