Bug 1832479 reflow video elements with natural size from metadata r=pehrsons
commit8fa3446be35b5b99f443d8a2fe29f462481e9b8a
authorKarl Tomlinson <karlt+@karlt.net>
Wed, 17 May 2023 01:36:59 +0000 (17 01:36 +0000)
committerKarl Tomlinson <karlt+@karlt.net>
Wed, 17 May 2023 01:36:59 +0000 (17 01:36 +0000)
tree436445d00fe7a9bf013131fcec10adc00ac14a76
parente1758473174f8fbf1b9279c5c93b553dfd3eac56
Bug 1832479 reflow video elements with natural size from metadata r=pehrsons

The spec is inconsistent [1] about whether this size from metadata should be
used, but having predictable behavior in Firefox is better than having the
size change unexpectedly because something unrelated triggers a reflow and
this change makes Firefox consistent with Chrome.

[1] https://github.com/whatwg/html/issues/9279

Differential Revision: https://phabricator.services.mozilla.com/D177984
dom/html/HTMLMediaElement.cpp
testing/web-platform/meta/html/semantics/embedded-content/the-video-element/intrinsic_sizes.htm.ini [deleted file]