[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webkit-dev
Subject:    Re: [webkit-dev] Calculate img/video aspect ratio from width and height HTML attributes
From:       Frédéric Wang <fwang () igalia ! com>
Date:       2020-02-18 19:29:09
Message-ID: 3b691f2f-a020-394f-73ca-0bd0b656fcf6 () igalia ! com
[Download RAW message or body]

On 19/12/2019 14:22, Frédéric Wang wrote:
> Hello,
> 
> In   [1], we will try and make WebKit rely on the width and height HTML
> attributes of the <img> and <video> elements in order to determine their
> aspect ratio, so that it can be used for sizing the image using CSS,
> before the content loads.
> 
> HTML and CSS standardization groups already reached consensus on this
> proposal [2] and there are WPT tests for it. Moreover this is already
> shipped in Gecko [3] and Chromium [4].
> 
> [1] https://bugs.webkit.org/show_bug.cgi?id=201641
> [2] https://github.com/WICG/intrinsicsize-attribute/issues/16
> [3]
> https://groups.google.com/forum/#!msg/mozilla.dev.platform/H9j3aJ20IgE/fs9Df3loCQAJ
> [4]
> https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/Compute$20img$2F \
> video$20aspect$20ratio$20from$20width$20and$20height$20HTML$20attributes%7Csort:date/blink-dev/GePU9T8UpEc/uQWhDZeODwAJ
>  
Hi,

Just for completeness, we intend to enable the flag by default in

https://bugs.webkit.org/show_bug.cgi?id=207880

-- 
Frédéric Wang

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic