This patch doesn't fundamentally change the behavior or expectations of this test. This patch simply moves all of the img elements to a <template> (which is not rendered), and then appends a clone of those elements to a container within the body; and then those cloned img elements are what get tested. This sets the stage for later patches to append additional modified copies of these img elements, with small modifications (e.g. using 'srcset' rather than 'src'). Original Revision: https://phabricator.services.mozilla.com/D251659 Differential Revision: https://phabricator.services.mozilla.com/D267118
Common testing tools for mozilla codebase projects, test suite definitions for automated test runs, tests that don't fit anywhere else, and other fun stuff