--
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/CAPTJ0XE5ce9O0cyLfbB1r6P6LAf3X7mNtWd1T-ht1HQBf%3Dg7QA%40mail.gmail.com.
LGTM1
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/9eab62f2-38c4-e963-2a42-e51659bcb3a8%40gmail.com.
Well, it only changes behavior while the image is loading. Once loaded, the behavior is the same as the old one.I apologize for not updating the spec link. See the last part of https://html.spec.whatwg.org/multipage/rendering.html#attributes-for-embedded-content-and-images (or the diff at https://github.com/whatwg/html/pull/4952/files). That's what we implement.It is true that Firefox hasn't shipped a stable release with the change yet but they did turn it on by default for release: https://bugzilla.mozilla.org/show_bug.cgi?id=1585637Yoav's comment is now filed at https://github.com/whatwg/html/issues/4968Expanding to other tags is at https://github.com/whatwg/html/issues/4961Christian
On Thu, Oct 3, 2019 at 4:51 PM Ojan Vafai <oj...@chromium.org> wrote:
I'm supportive of changing this, but it'd be nice if we had a more clear description of what the behavior we are shipping is. That issue has a lot of different things in it, e.g. things involved the aspect-ratio CSS property. It seems like it would be hard to point web developers at that and have them have a clear understanding of what we shipped. Maybe we should do a final post o that issue with a more succinct description of what we're shipping? Or create a new issue?
Also, is image/video size rendering specified anywhere? We probably want a diff to a spec?
Firefox hasn't actually shipped this to stable yet, right? The bug makes it sound like there's more that needs doing first.
Lastly, this doesn't seem like a pure performance optimization to me. It changes behavior, no? This seems like it would be as hard as anything else to unship once sites start depending on it to me. I think it's still a pretty safe change to try, but the text in the interoperability section maybe should be tweaked.
Daniel Bratell wrote:
LGTM1
/Daniel
On 2019-10-03 00:18, Christian Biesinger wrote:
cbies...@chromium.org,chrisht...@chromium.org https://github.com/WICG/intrinsicsize-attribute/issues/16#issuecomment-500941775 https://github.com/WICG/intrinsicsize-attribute/issues/16 No TAG review -- this is a pretty simple addition to image loading, which is basically just a performance optimization. Computes the aspect ratio of an image using the HTML width and height attributes so that it can be used for sizing the image using CSS before the image loads. https://groups.google.com/a/chromium.org/d/topic/blink-dev/hbhKRuBzZ4o/discussion
Compatibility: The only case where content will render differently is if an author specifies width/height attributes that do not match the actual aspect ratio of the image *and* has CSS that specifies one of width/height and explicitly sets the other dimension to "auto". This seems extremely unlikely. Interoperability: This is just a performance optimization; should this not gain traction with enough other browsers, it is easy to unship this. There are also WPT tests for this already and Firefox is shipping this. This was also discussed in the CSSWG. Firefox: Shipped (https://bugzilla.mozilla.org/show_bug.cgi?id=1547231) Now turned on by default Edge: No public signals Safari: No public signals Web developers: No signals n/a Adding width/height attributes to an image is straightforward. n/an/a, just a performance optimization Yes Yes https://wpt.fyi/results/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-aspect-ratio.tentative.html?label=experimental&label=master&aligned (The Chrome version used by wpt is too old to show us passing) https://bugs.chromium.org/p/chromium/issues/detail?id=979891 https://chromestatus.com/feature/5695266130755584This intent message was generated by Chrome Platform Status.
--
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 blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPTJ0XE5ce9O0cyLfbB1r6P6LAf3X7mNtWd1T-ht1HQBf%3Dg7QA%40mail.gmail.com.
--
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 blin...@chromium.org.
Web developer signal here is "strong support". However, I agree it's confusing that the proposal was for a default UA style applying to the aspect-ratio property, and the spec seems to be something different.
On Thursday, 3 October 2019 23:30:44 UTC+1, Christian Biesinger wrote:
Well, it only changes behavior while the image is loading. Once loaded, the behavior is the same as the old one.I apologize for not updating the spec link. See the last part of https://html.spec.whatwg.org/multipage/rendering.html#attributes-for-embedded-content-and-images (or the diff at https://github.com/whatwg/html/pull/4952/files). That's what we implement.It is true that Firefox hasn't shipped a stable release with the change yet but they did turn it on by default for release: https://bugzilla.mozilla.org/show_bug.cgi?id=1585637Yoav's comment is now filed at https://github.com/whatwg/html/issues/4968Expanding to other tags is at https://github.com/whatwg/html/issues/4961Christian
On Thu, Oct 3, 2019 at 4:51 PM Ojan Vafai <oj...@chromium.org> wrote:
I'm supportive of changing this, but it'd be nice if we had a more clear description of what the behavior we are shipping is. That issue has a lot of different things in it, e.g. things involved the aspect-ratio CSS property. It seems like it would be hard to point web developers at that and have them have a clear understanding of what we shipped. Maybe we should do a final post o that issue with a more succinct description of what we're shipping? Or create a new issue?
Also, is image/video size rendering specified anywhere? We probably want a diff to a spec?
Firefox hasn't actually shipped this to stable yet, right? The bug makes it sound like there's more that needs doing first.
Lastly, this doesn't seem like a pure performance optimization to me. It changes behavior, no? This seems like it would be as hard as anything else to unship once sites start depending on it to me. I think it's still a pretty safe change to try, but the text in the interoperability section maybe should be tweaked.
Daniel Bratell wrote:
LGTM1
/Daniel
On 2019-10-03 00:18, Christian Biesinger wrote:
cbies...@chromium.org,chrishtr@chromium.org https://github.com/WICG/intrinsicsize-attribute/issues/16#issuecomment-500941775 https://github.com/WICG/intrinsicsize-attribute/issues/16 No TAG review -- this is a pretty simple addition to image loading, which is basically just a performance optimization. Computes the aspect ratio of an image using the HTML width and height attributes so that it can be used for sizing the image using CSS before the image loads. https://groups.google.com/a/chromium.org/d/topic/blink-dev/hbhKRuBzZ4o/discussion
Compatibility: The only case where content will render differently is if an author specifies width/height attributes that do not match the actual aspect ratio of the image *and* has CSS that specifies one of width/height and explicitly sets the other dimension to "auto". This seems extremely unlikely. Interoperability: This is just a performance optimization; should this not gain traction with enough other browsers, it is easy to unship this. There are also WPT tests for this already and Firefox is shipping this. This was also discussed in the CSSWG. Firefox: Shipped (https://bugzilla.mozilla.org/show_bug.cgi?id=1547231) Now turned on by default Edge: No public signals Safari: No public signals Web developers: No signals n/a Adding width/height attributes to an image is straightforward. n/an/a, just a performance optimization Yes Yes https://wpt.fyi/results/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-aspect-ratio.tentative.html?label=experimental&label=master&aligned (The Chrome version used by wpt is too old to show us passing) https://bugs.chromium.org/p/chromium/issues/detail?id=979891 https://chromestatus.com/feature/5695266130755584This intent message was generated by Chrome Platform Status.
--
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 blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPTJ0XE5ce9O0cyLfbB1r6P6LAf3X7mNtWd1T-ht1HQBf%3Dg7QA%40mail.gmail.com.
LGTM2
On Monday, October 7, 2019 at 8:05:21 AM UTC-7, Jake Archibald wrote:
Web developer signal here is "strong support". However, I agree it's confusing that the proposal was for a default UA style applying to the aspect-ratio property, and the spec seems to be something different.
On Thursday, 3 October 2019 23:30:44 UTC+1, Christian Biesinger wrote:
Well, it only changes behavior while the image is loading. Once loaded, the behavior is the same as the old one.I apologize for not updating the spec link. See the last part of https://html.spec.whatwg.org/multipage/rendering.html#attributes-for-embedded-content-and-images (or the diff at https://github.com/whatwg/html/pull/4952/files). That's what we implement.It is true that Firefox hasn't shipped a stable release with the change yet but they did turn it on by default for release: https://bugzilla.mozilla.org/show_bug.cgi?id=1585637Yoav's comment is now filed at https://github.com/whatwg/html/issues/4968Expanding to other tags is at https://github.com/whatwg/html/issues/4961Christian
On Thu, Oct 3, 2019 at 4:51 PM Ojan Vafai <oj...@chromium.org> wrote:
I'm supportive of changing this, but it'd be nice if we had a more clear description of what the behavior we are shipping is. That issue has a lot of different things in it, e.g. things involved the aspect-ratio CSS property. It seems like it would be hard to point web developers at that and have them have a clear understanding of what we shipped. Maybe we should do a final post o that issue with a more succinct description of what we're shipping? Or create a new issue?
Also, is image/video size rendering specified anywhere? We probably want a diff to a spec?
Firefox hasn't actually shipped this to stable yet, right? The bug makes it sound like there's more that needs doing first.
Lastly, this doesn't seem like a pure performance optimization to me. It changes behavior, no? This seems like it would be as hard as anything else to unship once sites start depending on it to me. I think it's still a pretty safe change to try, but the text in the interoperability section maybe should be tweaked.
Daniel Bratell wrote:
LGTM1
/Daniel
On 2019-10-03 00:18, Christian Biesinger wrote:
cbies...@chromium.org,chri...@chromium.org https://github.com/WICG/intrinsicsize-attribute/issues/16#issuecomment-500941775 https://github.com/WICG/intrinsicsize-attribute/issues/16 No TAG review -- this is a pretty simple addition to image loading, which is basically just a performance optimization. Computes the aspect ratio of an image using the HTML width and height attributes so that it can be used for sizing the image using CSS before the image loads. https://groups.google.com/a/chromium.org/d/topic/blink-dev/hbhKRuBzZ4o/discussion
Compatibility: The only case where content will render differently is if an author specifies width/height attributes that do not match the actual aspect ratio of the image *and* has CSS that specifies one of width/height and explicitly sets the other dimension to "auto". This seems extremely unlikely. Interoperability: This is just a performance optimization; should this not gain traction with enough other browsers, it is easy to unship this. There are also WPT tests for this already and Firefox is shipping this. This was also discussed in the CSSWG. Firefox: Shipped (https://bugzilla.mozilla.org/show_bug.cgi?id=1547231) Now turned on by default Edge: No public signals Safari: No public signals Web developers: No signals n/a Adding width/height attributes to an image is straightforward. n/an/a, just a performance optimization Yes Yes https://wpt.fyi/results/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-aspect-ratio.tentative.html?label=experimental&label=master&aligned (The Chrome version used by wpt is too old to show us passing) https://bugs.chromium.org/p/chromium/issues/detail?id=979891 https://chromestatus.com/feature/5695266130755584This intent message was generated by Chrome Platform Status.
--
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 blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAPTJ0XE5ce9O0cyLfbB1r6P6LAf3X7mNtWd1T-ht1HQBf%3Dg7QA%40mail.gmail.com.
--
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 blin...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/9eab62f2-38c4-e963-2a42-e51659bcb3a8%40gmail.com.
--
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/20e69444-b2bd-4b44-98bc-2ec892cd6d49%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEiZCcyJapm0dYN2t7WY-_wqG6tUWLMK%2BBRdvgTPvR6wiw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CACj%3DBEiZCcyJapm0dYN2t7WY-_wqG6tUWLMK%2BBRdvgTPvR6wiw%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "blink-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/blink-dev/GePU9T8UpEc/unsubscribe.
To unsubscribe from this group and all its topics, 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/89ef5263-fd63-46b7-bfb5-628aed7aa280%40chromium.org.
I don't think iframes have an intrinsic aspect ratio. For instance, when you set the width/height of an iframe via CSS, it doesn't stretch to fit those dimensions, it lays the page out at that size.
To achieve what you want, you'd need a system where the iframe got its layout width/height from its attributes, and its render width/height from CSS. Then, it could have an intrinsic aspect ratio from the attributes. However, I'm pretty sure that wouldn't be a backwards-compatible change.
Fwiw, I've been wondering if <portal> should work this way https://github.com/WICG/portals/issues/173.