Groups
Groups
Sign in
Groups
Groups
mozilla.dev.platform
Conversations
About
Send feedback
Help
Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Learn more
Intent to ship: Infer aspect-ratio from img width and height attributes.
91 views
Skip to first unread message
Emilio Cobos Álvarez
unread,
Oct 2, 2019, 8:59:44 AM
10/2/19
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-pl...@lists.mozilla.org
Hi,
As of today I intend to turn this feature on for release and beta
channels (it was enabled only on Nightly until now).
It's been developed behind the
layout.css.width-and-height-map-to-aspect-ratio.enabled pref.
Bug to turn on by default:
https://bugzilla.mozilla.org/show_bug.cgi?id=1585637
This was implemented in bug 1547231.
Spec link is
https://html.spec.whatwg.org/multipage/rendering.html#attributes-for-embedded-content-and-images
(spec PR:
https://github.com/whatwg/html/pull/4952
).
Platform coverage: All
web-platform-tests:
https://github.com/web-platform-tests/wpt/blob/abb820ae83ffb82ccd8380ce61685b51329a7b07/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/img-aspect-ratio.tentative.html
(which I guess I should rename now that there's a spec).
Relevant browser bugs:
Chrome:
https://bugs.chromium.org/p/chromium/issues/detail?id=979891
Firefox:
https://bugzilla.mozilla.org/show_bug.cgi?id=1547231
Safari:
https://bugs.webkit.org/show_bug.cgi?id=201641
Secure contexts: not restricted to secure contexts, as many layout features.
Is this feature enabled by default in sandboxed iframes? Yes
Let me know if there's any concern with this.
Thanks,
-- Emilio
0 new messages