Revision 0324a6e8a143f16b689c354982e2a975748e7c56 authored by James Graham on 16 April 2018, 17:58:17 UTC, committed by moz-wptsync-bot on 16 April 2018, 23:59:07 UTC
These were previously timing out regularly on OSX debug builds.
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1454362
gecko-commit: e2f68d3b03c2fe2c8f489ba179e7dc871acda245
gecko-integration-branch: mozilla-inbound
gecko-reviewers: testonly
1 parent 25b6727
Raw File
supported-in-source-type.html
<!DOCTYPE html>
<title>Animated PNG MIME type (image/apng) is recognized by &lt;source type></title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
function resolveUrl(relativeUrl) {
  var a = document.createElement('a');
  a.href = relativeUrl;
  return a.href;
}

async_test(t => {
  window.onload = t.step_func_done(() => {
    let image = document.querySelector('img');
    let apngSrc = document.querySelector('source');
    assert_equals(image.currentSrc, resolveUrl(apngSrc.srcset));
  });
});
</script>
<picture>
  <source srcset="/images/anim-gr.png" type="image/apng">
  <img src="/images/anim-gr.gif" style="visibility: hidden">
</picture>
back to top