gecko-dev/testing/web-platform/tests/resize-observer
Boris Chiou fe3b7d1fcb Bug 1547533 - Update ResizeObserver tests on <img>. r=dholbert
Looks like onload event is not enough, so we still have intermittents.

Based on the suggestion in html spec:
https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-decode

We decode the image in parallel, and only inserting it into the DOM (and thus
causing it to be painted) once the decoding process is complete.

Because the decode() method attempts to ensure that the decoded image data is
available for at least one frame, it can be combined with the
requestAnimationFrame() API. This means it can be used with coding styles or
frameworks that ensure that all DOM modifications are batched together as
animation frame callbacks.

Hope this could reduce the occurrence rate of this intermittent.

Differential Revision: https://phabricator.services.mozilla.com/D35732

--HG--
extra : moz-landing-system : lando
2019-06-25 18:10:04 +00:00
..
resources Bug 1550370 [wpt PR 16676] - Fix the exception-handling for resize-observer., a=testonly 2019-06-05 10:29:17 +01:00
META.yml Bug 1272409 - Part 5: Update test meta. r=dholbert 2019-04-26 20:29:20 +00:00
eventloop.html Bug 1545309 - Run ResizeObserver eventloop test after loading successfully. r=dholbert 2019-05-06 22:53:09 +00:00
idlharness.window.js Bug 1536647 [wpt PR 15927] - Rename ResizeObserver.idl to resize-observer.idl, a=testonly 2019-04-24 11:18:21 +01:00
notify.html
observe.html Bug 1547533 - Update ResizeObserver tests on <img>. r=dholbert 2019-06-25 18:10:04 +00:00
svg.html Bug 1555030 - Add NS_FRAME_SVG_LAYOUT into SVGViewFrame and nsSVGStopFrame. r=dholbert,longsonr 2019-05-29 23:50:55 +00:00