Bug 1498770 [wpt PR 13492] - Make layout use available image data before querying the image cache., a=testonly
authorJosh Matthews <josh@joshmatthews.net>
Tue, 16 Oct 2018 09:58:44 +0000
changeset 489999 b1c4d95c465e84594ea1bfbb4b717072f41bf05a
parent 489998 90fbdef8b5e48ab852ee5429229bbd4df1dbb988
child 490000 08d16a54e859b7de860fc345a4cdb9e0449f0cef
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerstestonly
bugs1498770, 13492
milestone64.0a1
Bug 1498770 [wpt PR 13492] - Make layout use available image data before querying the image cache., a=testonly Automatic update from web-platform-testsMake layout use available image data before querying the image cache. -- Merge pull request #13492 from servo-wpt-sync/servo_export_21931 Make layout use available image data before querying the image cache. -- wpt-commits: 77f7b019a69ae75d0e0b6bb1d8f56e8486f6ffd5, c1dd54d48c23a6cd99ccb9b475487c9efc23997d wpt-pr: 13492
testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images-ref.html
testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images-ref.html
@@ -0,0 +1,2 @@
+<!doctype html>
+<img src="3.jpg">
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/available-images.html
@@ -0,0 +1,17 @@
+<!doctype html>
+<html class="reftest-wait">
+<title>Ensure images from available images list are rendered</title>
+<meta charset="utf-8">
+<link rel="match" href="available-images-ref.html">
+<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-img-element">
+<div id="log"></div>
+<script>
+  var i = new Image();
+  i.onload = function() {
+    var i2 = new Image();
+    i2.src = "3.jpg";
+    document.body.appendChild(i2);
+    document.documentElement.classList.remove("reftest-wait");
+  };
+  i.src = "3.jpg";
+</script>