Intent to Implement: intrinsicsize attribute

108 views
Skip to first unread message

Luna Lu

unread,
Aug 15, 2018, 6:18:18 PM8/15/18
to blink-dev
Contact emails
None Explainer
Allows developers to specify the intrinsic size for media elements (<img> and <video>).
This attribute will override media elements' intrinsic sizing info. Specifically, a <img> element's naturalWidth/naturalHeight will reflect the values specified in this attribute. Similarly, a <video> element's videoWidth/videoHeight will reflect the values specified in this attribute.

This attribute will allow media elements to maintain the aspect ratio. It will allow developers to only specify one dimension (to a percentage or pixel value) and have the other dimension computed immediately without causing a visual re-flow.
Firefox: No public signals Edge: No public signals Safari: No public signals Web developers: No signals This attribute modifies the behavior of <img> and <video> elements. The intrinsic size of the media elements dimension will be overridden by this attribute. In addition, it will change the way intrinsic size is determined for responsive images.
https://crbug.com/874629 https://www.chromestatus.com/feature/4704436815396864

fantasai

unread,
Aug 15, 2018, 7:51:00 PM8/15/18
to Luna Lu, blink-dev, icle...@chromium.org
On 08/15/2018 03:17 PM, Luna Lu wrote:

This returns a 404.


Allows developers to specify the intrinsic size for media elements (<img> and <video>).
This attribute will override media elements' intrinsic sizing info. Specifically, a <img> element's naturalWidth/naturalHeight will reflect the values specified in this attribute. Similarly, a <video> element's videoWidth/videoHeight will reflect the values specified in this attribute.
This attribute will allow media elements to maintain the aspect ratio. It will allow developers to only specify one dimension (to a percentage or pixel value) and have the other dimension computed immediately without causing a visual re-flow.

If the main use case is preserving the aspect ratio, why isn't it possible to set an aspect ratio without setting a size?
(Or is it? I can't tell, since there's no spec and the explainer link is a 404.)

Firefox: No public signals Edge: No public signals Safari: No public signals Web developers: No signals Yes

Why do you think it's a good idea to publicly ship a feature that has no spec, no public signals of support from other vendors, none from web developers, and (afaict from your Intent to Implement) no review by relevant standards expertise such as the CSSWG or the TAG or the HTML spec editors at WHATWG and therefore (again, afaict) has not received any significant design review or approval from the community outside of your Chrome Team colleagues?

~fantasai

Yoav Weiss

unread,
Aug 16, 2018, 6:18:07 AM8/16/18
to fantasai, Luna Lu, blink-dev, icle...@chromium.org
On Thu, Aug 16, 2018 at 1:50 AM fantasai <fantasa...@inkedblade.net> wrote:
On 08/15/2018 03:17 PM, Luna Lu wrote:

This returns a 404.

As the email's title indicates "intent to implement", I believe this request to ship was not intentional. Luna - can you clarify?
 

~fantasai

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/4e4d8259-fd6c-cf52-017f-8e84276cb13f%40inkedblade.net.

loon...@chromium.org

unread,
Aug 16, 2018, 10:55:16 AM8/16/18
to blink-dev, fantasa...@inkedblade.net, loon...@chromium.org, icle...@chromium.org
Sorry. 


This intent is intent to implement, so intent to ship is not needed for now. 
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

lun...@google.com

unread,
Aug 16, 2018, 3:51:28 PM8/16/18
to blink-dev, fantasa...@inkedblade.net, loon...@chromium.org, icle...@chromium.org
Sorry. 


This email is intent to implement, so intent to ship is not needed for now. 

On Thursday, August 16, 2018 at 6:18:07 AM UTC-4, Yoav Weiss wrote:

amelia.bel...@gmail.com

unread,
Sep 17, 2018, 6:13:33 PM9/17/18
to blink-dev
Are there any plans to make a formal proposal to have this attribute added to HTML?

A month after this Intent to Implement request for Chromium, I don't see any directly relevant issues on either the WHATWG or W3C HTML standards issue trackers, nor any dedicated WICG discussion threads.

I agree that the ability to set a image aspect ratio in the markup is strongly needed, and is especially important as part of the lazyload proposal. But I'd recommend discussing the syntax in a standards forum, with input from other browser teams and people working on related standards proposals, before spending too much effort on an implementation.

~Amelia BR

Reply all
Reply to author
Forward
0 new messages