Bug 1490460 [wpt PR 12953] - move wpt for intrinsicsize to the right directory, a=testonly
authorLuna Lu <loonybear@chromium.org>
Thu, 13 Sep 2018 02:56:56 +0000
changeset 492316 b8918dd48eeb8da3a85d1437434db5579b08fc71
parent 492315 3ca3864013dd26d379a82c4d1c86c66d43384c5b
child 492317 e31a61a5ec97daf5fa286314d421ba274a62fe8c
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1490460, 12953, 874629, 1220091, 590435
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1490460 [wpt PR 12953] - move wpt for intrinsicsize to the right directory, a=testonly Automatic update from web-platform-testsmove wpt for intrinsicsize to the right directory TBR: iclelland@chromium.org Bug: 874629 Change-Id: Ia5346b73344bf33dd1446591b85acf0d6a608e9b Reviewed-on: https://chromium-review.googlesource.com/1220091 Commit-Queue: Luna Lu <loonybear@chromium.org> Reviewed-by: Luna Lu <loonybear@chromium.org> Cr-Commit-Position: refs/heads/master@{#590435} -- wpt-commits: 0a4d6147dc7db8ab3f836f4962643926b90dd655 wpt-pr: 12953
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-svg-image-ref.html
testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-svg-image.tentative.html
testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-with-responsive-images.tentative.html
testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html
testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers
testing/web-platform/tests/html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image-ref.html
testing/web-platform/tests/html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image.tentative.html
testing/web-platform/tests/html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-with-responsive-images.tentative.html
testing/web-platform/tests/html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html
testing/web-platform/tests/html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers
testing/web-platform/tests/html/semantics/embedded-content/the-video-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html
testing/web-platform/tests/html/semantics/embedded-content/the-video-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -183596,28 +183596,16 @@
       [
        "/encoding/eof-utf-8-two-ref.html",
        "=="
       ]
      ],
      {}
     ]
    ],
-   "feature-policy/experimental-features/intrinsicsize-svg-image.tentative.html": [
-    [
-     "/feature-policy/experimental-features/intrinsicsize-svg-image.tentative.html",
-     [
-      [
-       "/feature-policy/experimental-features/intrinsicsize-svg-image-ref.html",
-       "=="
-      ]
-     ],
-     {}
-    ]
-   ],
    "fetch/corb/img-html-correctly-labeled.sub.html": [
     [
      "/fetch/corb/img-html-correctly-labeled.sub.html",
      [
       [
        "/fetch/corb/img-html-correctly-labeled.sub-ref.html",
        "=="
       ]
@@ -186380,16 +186368,28 @@
       [
        "/html/semantics/embedded-content/media-elements/track/track-element/track-webvtt-two-cue-layout-after-first-end-ref.html",
        "=="
       ]
      ],
      {}
     ]
    ],
+   "html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image.tentative.html": [
+    [
+     "/html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image.tentative.html",
+     [
+      [
+       "/html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image-ref.html",
+       "=="
+      ]
+     ],
+     {}
+    ]
+   ],
    "html/semantics/embedded-content/the-audio-element/audio_001.htm": [
     [
      "/html/semantics/embedded-content/the-audio-element/audio_001.htm",
      [
       [
        "/html/semantics/embedded-content/the-audio-element/audio_content-ref.htm",
        "=="
       ]
@@ -279543,31 +279543,21 @@
      {}
     ]
    ],
    "feature-policy/README.md": [
     [
      {}
     ]
    ],
-   "feature-policy/experimental-features/intrinsicsize-svg-image-ref.html": [
-    [
-     {}
-    ]
-   ],
    "feature-policy/experimental-features/intrinsicsize-with-unsized-media.tentative.https.sub.html.headers": [
     [
      {}
     ]
    ],
-   "feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers": [
-    [
-     {}
-    ]
-   ],
    "feature-policy/experimental-features/resources/async-script.js": [
     [
      {}
     ]
    ],
    "feature-policy/experimental-features/resources/common.js": [
     [
      {}
@@ -289093,16 +289083,21 @@
      {}
     ]
    ],
    "html/semantics/embedded-content/resources/should-not-load.html": [
     [
      {}
     ]
    ],
+   "html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image-ref.html": [
+    [
+     {}
+    ]
+   ],
    "html/semantics/embedded-content/the-area-element/resources/area-download-click.html": [
     [
      {}
     ]
    ],
    "html/semantics/embedded-content/the-area-element/support/hit-test.js": [
     [
      {}
@@ -289638,16 +289633,21 @@
      {}
     ]
    ],
    "html/semantics/embedded-content/the-img-element/image.png": [
     [
      {}
     ]
    ],
+   "html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers": [
+    [
+     {}
+    ]
+   ],
    "html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-after.html": [
     [
      {}
     ]
    ],
    "html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-before.html": [
     [
      {}
@@ -289693,16 +289693,21 @@
      {}
     ]
    ],
    "html/semantics/embedded-content/the-object-element/test2.html": [
     [
      {}
     ]
    ],
+   "html/semantics/embedded-content/the-video-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers": [
+    [
+     {}
+    ]
+   ],
    "html/semantics/embedded-content/the-video-element/video_content-ref.htm": [
     [
      {}
     ]
    ],
    "html/semantics/embedded-content/the-video-element/video_dynamic_poster-ref.htm": [
     [
      {}
@@ -354694,34 +354699,22 @@
     ]
    ],
    "feature-policy/experimental-features/document-write.tentative.html": [
     [
      "/feature-policy/experimental-features/document-write.tentative.html",
      {}
     ]
    ],
-   "feature-policy/experimental-features/intrinsicsize-with-responsive-images.tentative.html": [
-    [
-     "/feature-policy/experimental-features/intrinsicsize-with-responsive-images.tentative.html",
-     {}
-    ]
-   ],
    "feature-policy/experimental-features/intrinsicsize-with-unsized-media.tentative.https.sub.html": [
     [
      "/feature-policy/experimental-features/intrinsicsize-with-unsized-media.tentative.https.sub.html",
      {}
     ]
    ],
-   "feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html": [
-    [
-     "/feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html",
-     {}
-    ]
-   ],
    "feature-policy/experimental-features/sync-script.tentative.https.sub.html": [
     [
      "/feature-policy/experimental-features/sync-script.tentative.https.sub.html",
      {}
     ]
    ],
    "feature-policy/experimental-features/unsized-media.tentative.https.sub.html": [
     [
@@ -363444,16 +363437,28 @@
     ]
    ],
    "html/semantics/embedded-content/the-img-element/img.complete.html": [
     [
      "/html/semantics/embedded-content/the-img-element/img.complete.html",
      {}
     ]
    ],
+   "html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-with-responsive-images.tentative.html": [
+    [
+     "/html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-with-responsive-images.tentative.html",
+     {}
+    ]
+   ],
+   "html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html": [
+    [
+     "/html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html",
+     {}
+    ]
+   ],
    "html/semantics/embedded-content/the-img-element/invalid-src.html": [
     [
      "/html/semantics/embedded-content/the-img-element/invalid-src.html",
      {}
     ]
    ],
    "html/semantics/embedded-content/the-img-element/non-active-document.html": [
     [
@@ -363606,16 +363611,22 @@
     ]
    ],
    "html/semantics/embedded-content/the-object-element/usemap-casing.html": [
     [
      "/html/semantics/embedded-content/the-object-element/usemap-casing.html",
      {}
     ]
    ],
+   "html/semantics/embedded-content/the-video-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html": [
+    [
+     "/html/semantics/embedded-content/the-video-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html",
+     {}
+    ]
+   ],
    "html/semantics/embedded-content/the-video-element/video-tabindex.html": [
     [
      "/html/semantics/embedded-content/the-video-element/video-tabindex.html",
      {}
     ]
    ],
    "html/semantics/forms/attributes-common-to-form-controls/dirname-ltr.html": [
     [
@@ -593641,44 +593652,24 @@
   "feature-policy/README.md": [
    "48cb95ebf749d67b4965f5e24f20e36ede749600",
    "support"
   ],
   "feature-policy/experimental-features/document-write.tentative.html": [
    "f0148783f1246b6bd60dabd837c64fc6d903e542",
    "testharness"
   ],
-  "feature-policy/experimental-features/intrinsicsize-svg-image-ref.html": [
-   "1f142880428067d73ce5caf58e1bdc246b994de0",
-   "support"
-  ],
-  "feature-policy/experimental-features/intrinsicsize-svg-image.tentative.html": [
-   "d16ac03766a46e23a029b9cb20aeefe14b65e09c",
-   "reftest"
-  ],
-  "feature-policy/experimental-features/intrinsicsize-with-responsive-images.tentative.html": [
-   "60bc00ddc3ece7f3bb1c0d6e07ffbe9be735188d",
-   "testharness"
-  ],
   "feature-policy/experimental-features/intrinsicsize-with-unsized-media.tentative.https.sub.html": [
    "9d4757f81ebe83544d428ff5a7161d6c69cdc795",
    "testharness"
   ],
   "feature-policy/experimental-features/intrinsicsize-with-unsized-media.tentative.https.sub.html.headers": [
    "db2dcbc1929b9e1264855e9b80f77dfbda5d4f38",
    "support"
   ],
-  "feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html": [
-   "4a3526425d7add2eb9b144ac3f8498bcbcf7890e",
-   "testharness"
-  ],
-  "feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers": [
-   "4fbf3f5adddbcb8ec95fc0e2192f4da841e93b8c",
-   "support"
-  ],
   "feature-policy/experimental-features/resources/async-script.js": [
    "3c0ee6d02343891b0234f31c0fb229929ae1b24b",
    "support"
   ],
   "feature-policy/experimental-features/resources/common.js": [
    "08d3aef9874894f03941a0dc74dd4061ebe021d3",
    "support"
   ],
@@ -607765,16 +607756,24 @@
   "html/semantics/embedded-content/resources/should-load.html": [
    "a9a178ce51ed7241d30755fe32b7003680f628c8",
    "support"
   ],
   "html/semantics/embedded-content/resources/should-not-load.html": [
    "6281b2da553948a524fd39cef6d719cf5f42c7f8",
    "support"
   ],
+  "html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image-ref.html": [
+   "41ddd757eca501dcf7e8b059d021d730bab2c729",
+   "support"
+  ],
+  "html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image.tentative.html": [
+   "a0943169d0a5d960b97d4af9ccc629197e72a175",
+   "reftest"
+  ],
   "html/semantics/embedded-content/the-area-element/area-coords.html": [
    "9ec6f3e42732f62d2bf36936a214dc176e23bc07",
    "testharness"
   ],
   "html/semantics/embedded-content/the-area-element/area-download-click.html": [
    "8100ada9d5f9fb01eb108347f44a8f31321941dd",
    "testharness"
   ],
@@ -609117,16 +609116,28 @@
   "html/semantics/embedded-content/the-img-element/image.png": [
    "d26878c9f22d53bb44be515fa9f0ffbb90a71cbd",
    "support"
   ],
   "html/semantics/embedded-content/the-img-element/img.complete.html": [
    "4be8d4db848ad259a508e1a8091feaae7733e784",
    "testharness"
   ],
+  "html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-with-responsive-images.tentative.html": [
+   "739765c0d441aaf0d91c5f90ce544c5e1d81e14b",
+   "testharness"
+  ],
+  "html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html": [
+   "4192e567fcc1921041e6a98d210df41199f701a6",
+   "testharness"
+  ],
+  "html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers": [
+   "4fbf3f5adddbcb8ec95fc0e2192f4da841e93b8c",
+   "support"
+  ],
   "html/semantics/embedded-content/the-img-element/invalid-src.html": [
    "49e956565cc7c386cf548eab37097a9b995d4f1b",
    "testharness"
   ],
   "html/semantics/embedded-content/the-img-element/ismap/img-ismap-coordinates-iframe-after.html": [
    "bb4c5991c91babf10e889ccea8930cfd4d0e5990",
    "support"
   ],
@@ -609277,16 +609288,24 @@
   "html/semantics/embedded-content/the-object-element/test2.html": [
    "e5061eaea0d8adb6d8d3b9b84bca1c8a10d3c563",
    "support"
   ],
   "html/semantics/embedded-content/the-object-element/usemap-casing.html": [
    "cac7d470aedd15e9087f20ba23947d59d0595dfb",
    "testharness"
   ],
+  "html/semantics/embedded-content/the-video-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html": [
+   "d749d5576e6881ea900f7cd26e0ff6adad2610f3",
+   "testharness"
+  ],
+  "html/semantics/embedded-content/the-video-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers": [
+   "4fbf3f5adddbcb8ec95fc0e2192f4da841e93b8c",
+   "support"
+  ],
   "html/semantics/embedded-content/the-video-element/video-tabindex.html": [
    "30448747892203f3d53ef4b9615a5a50bb62c62f",
    "testharness"
   ],
   "html/semantics/embedded-content/the-video-element/video_content-ref.htm": [
    "c02abb1236d3a2883d6e451fdb05d16b1d03157d",
    "support"
   ],
deleted file mode 100644
--- a/testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-svg-image-ref.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<body>
-<svg width=200 height=200>
-  <image href="/feature-policy/experimental-features/resources/image.png" width="32" height="32"/>
-</svg>
-<svg width=200 height=200>
-  <image href="/feature-policy/experimental-features/resources/image.png" width="300" height="150"/>
-</svg>
-<svg width=400 height=400>
-  <image href="/feature-policy/experimental-features/resources/image.png" width="300" height="150"/>
-</svg>
-<svg width=200 height=200>
-  <image href="/feature-policy/experimental-features/resources/image.png" width="300" height="150"/>
-</svg>
-<svg width=200 height=200>
-  <image href="/feature-policy/experimental-features/resources/image.png" height="50" width="100"/>
-</svg>
-<svg width=200 height=200>
-  <image href="/feature-policy/experimental-features/resources/image.png" width="100" height="100"/>
-</svg>
-</body>
deleted file mode 100644
--- a/testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-svg-image.tentative.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<link rel="match" href="intrinsicsize-svg-image-ref.html">
-<meta name="assert" content="test">
-<body>
-<svg width=200 height=200>
-  <image href="/feature-policy/experimental-features/resources/image.png"/>
-</svg>
-<svg width=200 height=200>
-  <image href="/feature-policy/experimental-features/resources/image.png" intrinsicsize="300x150"/>
-</svg>
-<svg width=400 height=400>
-  <image href="/feature-policy/experimental-features/resources/image.png" intrinsicsize="300x150"/>
-</svg>
-<svg width=200 height=200>
-  <image href="/feature-policy/experimental-features/resources/image.png" intrinsicsize="300x150" width="300"/>
-</svg>
-<svg width=200 height=200>
-  <image href="/feature-policy/experimental-features/resources/image.png" intrinsicsize="300x150" height="50"/>
-</svg>
-<svg width=200 height=200>
-  <image href="/feature-policy/experimental-features/resources/image.png" intrinsicsize="300x150" width="100" height="100"/>
-</svg>
-</body>
deleted file mode 100644
--- a/testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-with-responsive-images.tentative.html
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<body>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script>
-'use strict';
-
-const srcs = [
-  "/feature-policy/experimental-features/resources/image.svg",
-  "/feature-policy/experimental-features/resources/image.jpg",
-  "/feature-policy/experimental-features/resources/image.png",
-];
-
-for (var src of srcs) {
-  async_test(t => {
-    var img = document.createElement('IMG');
-    img.intrinsicSize = '400 x 500';
-    var expected_intrinsic_width = 400;
-    var expected_intrinsic_height = 500;
-    var expected_width = expected_intrinsic_width;
-    var expected_height = expected_intrinsic_height;
-
-    document.body.appendChild(img);
-    img.addEventListener('load', t.step_func(() => {
-      assert_equals(img.width, expected_width, 'width');
-      assert_equals(img.height, expected_height, 'height');
-      assert_equals(img.naturalWidth, expected_intrinsic_width, 'naturalWidth');
-      assert_equals(img.naturalHeight, expected_intrinsic_height, 'naturalHeigh');
-      t.done();
-    }));
-    img.srcset = src + ' 3x';
-  }, 'Test image ' + src + ' with no specified sizes, width, or height');
-
-  async_test(t => {
-    var img = document.createElement('IMG');
-    img.intrinsicSize = '400 x 500';
-    img.width = '800'; /* 2x of intrinsic width */
-    var expected_intrinsic_width = 400;
-    var expected_intrinsic_height = 500;
-    var expected_width = expected_intrinsic_width * 2;
-    var expected_height = expected_intrinsic_height * 2;
-
-    document.body.appendChild(img);
-    img.addEventListener('load', t.step_func(() => {
-      assert_equals(img.width, expected_width, 'width');
-      assert_equals(img.height, expected_height, 'height');
-      assert_equals(img.naturalWidth, expected_intrinsic_width, 'naturalWidth');
-      assert_equals(img.naturalHeight, expected_intrinsic_height, 'naturalHeigh');
-      t.done();
-    }));
-    img.srcset = src + ' 3x';
-  }, 'Test image ' + src + ' with width = 800, no specified sizes, or height');
-
-  async_test(t => {
-    var img = document.createElement('IMG');
-    img.intrinsicSize = '400 x 500';
-    img.width = '800';
-    img.style = 'height:800px;';
-    var expected_intrinsic_width = 400;
-    var expected_intrinsic_height = 500;
-    var expected_width = 800;
-    var expected_height = 800;
-
-    document.body.appendChild(img);
-    img.addEventListener('load', t.step_func(() => {
-      assert_equals(img.width, expected_width, 'width');
-      assert_equals(img.height, expected_height, 'height');
-      assert_equals(img.naturalWidth, expected_intrinsic_width, 'naturalWidth');
-      assert_equals(img.naturalHeight, expected_intrinsic_height, 'naturalHeigh');
-      t.done();
-    }));
-    img.srcset = src + ' 3x';
-  }, 'Test image ' + src + ' with width = 800, height = 800, and no specified sizes');
-}
-
-async_test(t => {
-  var img = document.createElement('IMG');
-  img.intrinsicSize = '400 x 500';
-  img.sizes = '100px';
-  var expected_intrinsic_width = 100;
-  var expected_intrinsic_height = 125;
-  var expected_width = 100;
-  var expected_height = 125;
-
-  document.body.appendChild(img);
-  img.addEventListener('load', t.step_func(() => {
-    assert_equals(img.width, expected_width, 'width');
-    assert_equals(img.height, expected_height, 'height');
-    assert_equals(img.naturalWidth, expected_intrinsic_width, 'naturalWidth');
-    assert_equals(img.naturalHeight, expected_intrinsic_height, 'naturalHeigh');
-    t.done();
-  }));
-  img.srcset = srcs[2] + ' 32w';
-}, 'Test image (32 x 32) with sizes = 100 and srcset descriptor = 32w');
-
-</script>
-</body>
deleted file mode 100644
--- a/testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html>
-<body>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script>
-'use strict';
-
-const srcs = [
-  "/feature-policy/experimental-features/resources/image.svg",
-  "/feature-policy/experimental-features/resources/image.jpg",
-  "/feature-policy/experimental-features/resources/image.png",
-];
-
-// Set new attribute, and wait til the media element is repainted.
-function updateAttribute(e, attribute, value) {
-  return new Promise(resolve => {
-    requestAnimationFrame(() => requestAnimationFrame(() => resolve()));
-    e.setAttribute(attribute, value);
-  });
-}
-
-// Test intrinsicSize attribute with image element.
-for (var src of srcs) {
-  promise_test(async() => {
-    var img = document.createElement('IMG');
-    document.body.appendChild(img);
-    img.src = src;
-    await new Promise(resolve =>
-      img.addEventListener('load', () => resolve(), {once: true}));
-    await updateAttribute(img, 'intrinsicSize', '400 x 500');
-    assert_equals(img.width, 400, 'width');
-    assert_equals(img.height, 500, 'height');
-    assert_equals(img.naturalWidth, 400, 'naturalWidth');
-    assert_equals(img.naturalHeight, 500, 'naturalHeight');
-
-    await updateAttribute(img, 'width', '800');
-    assert_equals(img.width, 800, 'width');
-    assert_equals(img.height, 1000, 'height');
-    assert_equals(img.naturalWidth, 400, 'naturalWidth');
-    assert_equals(img.naturalHeight, 500, 'naturalHeight');
-
-    await updateAttribute(img, 'style', 'height:800px;');
-    assert_equals(img.width, 800, 'width');
-    assert_equals(img.height, 800, 'height');
-    assert_equals(img.naturalWidth, 400, 'naturalWidth');
-    assert_equals(img.naturalHeight, 500, 'naturalHeight');
-
-    await updateAttribute(img, 'width', '');
-    assert_equals(img.width, 640, 'width');
-    assert_equals(img.height, 800, 'height');
-    assert_equals(img.naturalWidth, 400, 'naturalWidth');
-    assert_equals(img.naturalHeight, 500, 'naturalHeight');
-
-    await updateAttribute(img, 'style', 'height:800px; writing-mode: vertical-rl;');
-    assert_equals(img.width, 640, 'width');
-    assert_equals(img.height, 800, 'height');
-    assert_equals(img.naturalWidth, 400, 'naturalWidth');
-    assert_equals(img.naturalHeight, 500, 'naturalHeight');
-
-    await updateAttribute(img, 'style', 'height:800px; writing-mode: horizontal-tb;');
-    assert_equals(img.width, 640, 'width');
-    assert_equals(img.height, 800, 'height');
-    assert_equals(img.naturalWidth, 400, 'naturalWidth');
-    assert_equals(img.naturalHeight, 500, 'naturalHeight');
-  }, 'Test image with src=' + src);
-}
-
-// Test intrinsicSize attribute with video element.
-promise_test(async() => {
-  var video = document.createElement('video');
-  document.body.appendChild(video);
-  video.src = "/feature-policy/experimental-features/resources/video.ogv";
-  await new Promise(resolve =>
-    video.addEventListener('canplaythrough', () => resolve(), {once: true}));
-  video.intrinsicSize = '400 x 500';
-  assert_equals(video.getBoundingClientRect().width, 400, 'width');
-  assert_equals(video.getBoundingClientRect().height, 500, 'height');
-  assert_equals(video.videoWidth, 400, 'naturalWidth');
-  assert_equals(video.videoHeight, 500, 'naturalHeight');
-
-  video.width = '800';
-  assert_equals(video.getBoundingClientRect().width, 800, 'width');
-  assert_equals(video.getBoundingClientRect().height, 1000, 'height');
-  assert_equals(video.videoWidth, 400, 'naturalWidth');
-  assert_equals(video.videoHeight, 500, 'naturalHeight');
-
-  video.style = 'height:800px;';
-  assert_equals(video.getBoundingClientRect().width, 800, 'width');
-  assert_equals(video.getBoundingClientRect().height, 800, 'height');
-  assert_equals(video.videoWidth, 400, 'naturalWidth');
-  assert_equals(video.videoHeight, 500, 'naturalHeight');
-
-  video.removeAttribute('width');
-  assert_equals(video.getBoundingClientRect().width, 640, 'width');
-  assert_equals(video.getBoundingClientRect().height, 800, 'height');
-  assert_equals(video.videoWidth, 400, 'naturalWidth');
-  assert_equals(video.videoHeight, 500, 'naturalHeight');
-}, 'Test video');
-</script>
-</body>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image-ref.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<body>
+<svg width=200 height=200>
+  <image href="/images/background.png" width="32" height="32"/>
+</svg>
+<svg width=200 height=200>
+  <image href="/images/background.png" width="300" height="150"/>
+</svg>
+<svg width=400 height=400>
+  <image href="/images/background.png" width="300" height="150"/>
+</svg>
+<svg width=200 height=200>
+  <image href="/images/background.png" width="300" height="150"/>
+</svg>
+<svg width=200 height=200>
+  <image href="/images/background.png" height="50" width="100"/>
+</svg>
+<svg width=200 height=200>
+  <image href="/images/background.png" width="100" height="100"/>
+</svg>
+</body>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/embedded-content/svg/intrinsicsize/intrinsicsize-svg-image.tentative.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<link rel="match" href="intrinsicsize-svg-image-ref.html">
+<meta name="assert" content="test">
+<body>
+<svg width=200 height=200>
+  <image href="/images/background.png"/>
+</svg>
+<svg width=200 height=200>
+  <image href="/images/background.png" intrinsicsize="300x150"/>
+</svg>
+<svg width=400 height=400>
+  <image href="/images/background.png" intrinsicsize="300x150"/>
+</svg>
+<svg width=200 height=200>
+  <image href="/images/background.png" intrinsicsize="300x150" width="300"/>
+</svg>
+<svg width=200 height=200>
+  <image href="/images/background.png" intrinsicsize="300x150" height="50"/>
+</svg>
+<svg width=200 height=200>
+  <image href="/images/background.png" intrinsicsize="300x150" width="100" height="100"/>
+</svg>
+</body>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-with-responsive-images.tentative.html
@@ -0,0 +1,96 @@
+<!DOCTYPE html>
+<body>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+'use strict';
+
+const srcs = [
+  "/images/green.svg",
+  "/images/green.png",
+];
+
+for (var src of srcs) {
+  async_test(t => {
+    var img = document.createElement('IMG');
+    img.intrinsicSize = '400 x 500';
+    var expected_intrinsic_width = 400;
+    var expected_intrinsic_height = 500;
+    var expected_width = expected_intrinsic_width;
+    var expected_height = expected_intrinsic_height;
+
+    document.body.appendChild(img);
+    img.addEventListener('load', t.step_func(() => {
+      assert_equals(img.width, expected_width, 'width');
+      assert_equals(img.height, expected_height, 'height');
+      assert_equals(img.naturalWidth, expected_intrinsic_width, 'naturalWidth');
+      assert_equals(img.naturalHeight, expected_intrinsic_height, 'naturalHeigh');
+      t.done();
+    }));
+    img.srcset = src + ' 3x';
+  }, 'Test image ' + src + ' with no specified sizes, width, or height');
+
+  async_test(t => {
+    var img = document.createElement('IMG');
+    img.intrinsicSize = '400 x 500';
+    img.width = '800'; /* 2x of intrinsic width */
+    var expected_intrinsic_width = 400;
+    var expected_intrinsic_height = 500;
+    var expected_width = expected_intrinsic_width * 2;
+    var expected_height = expected_intrinsic_height * 2;
+
+    document.body.appendChild(img);
+    img.addEventListener('load', t.step_func(() => {
+      assert_equals(img.width, expected_width, 'width');
+      assert_equals(img.height, expected_height, 'height');
+      assert_equals(img.naturalWidth, expected_intrinsic_width, 'naturalWidth');
+      assert_equals(img.naturalHeight, expected_intrinsic_height, 'naturalHeigh');
+      t.done();
+    }));
+    img.srcset = src + ' 3x';
+  }, 'Test image ' + src + ' with width = 800, no specified sizes, or height');
+
+  async_test(t => {
+    var img = document.createElement('IMG');
+    img.intrinsicSize = '400 x 500';
+    img.width = '800';
+    img.style = 'height:800px;';
+    var expected_intrinsic_width = 400;
+    var expected_intrinsic_height = 500;
+    var expected_width = 800;
+    var expected_height = 800;
+
+    document.body.appendChild(img);
+    img.addEventListener('load', t.step_func(() => {
+      assert_equals(img.width, expected_width, 'width');
+      assert_equals(img.height, expected_height, 'height');
+      assert_equals(img.naturalWidth, expected_intrinsic_width, 'naturalWidth');
+      assert_equals(img.naturalHeight, expected_intrinsic_height, 'naturalHeigh');
+      t.done();
+    }));
+    img.srcset = src + ' 3x';
+  }, 'Test image ' + src + ' with width = 800, height = 800, and no specified sizes');
+}
+
+async_test(t => {
+  var img = document.createElement('IMG');
+  img.intrinsicSize = '400 x 500';
+  img.sizes = '100px';
+  var expected_intrinsic_width = 100;
+  var expected_intrinsic_height = 125;
+  var expected_width = 100;
+  var expected_height = 125;
+
+  document.body.appendChild(img);
+  img.addEventListener('load', t.step_func(() => {
+    assert_equals(img.width, expected_width, 'width');
+    assert_equals(img.height, expected_height, 'height');
+    assert_equals(img.naturalWidth, expected_intrinsic_width, 'naturalWidth');
+    assert_equals(img.naturalHeight, expected_intrinsic_height, 'naturalHeigh');
+    t.done();
+  }));
+  img.srcset = '/images/background.png 32w';
+}, 'Test image (32 x 32) with sizes = 100 and srcset descriptor = 32w');
+
+</script>
+</body>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<body>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+'use strict';
+
+const srcs = [
+  "/images/green.svg",
+  "/images/green.png",
+];
+
+// Set new attribute, and wait til the media element is repainted.
+function updateAttribute(e, attribute, value) {
+  return new Promise(resolve => {
+    requestAnimationFrame(() => requestAnimationFrame(() => resolve()));
+    e.setAttribute(attribute, value);
+  });
+}
+
+for (var src of srcs) {
+  promise_test(async() => {
+    var img = document.createElement('IMG');
+    document.body.appendChild(img);
+    img.src = src;
+    await new Promise(resolve =>
+      img.addEventListener('load', () => resolve(), {once: true}));
+    await updateAttribute(img, 'intrinsicSize', '400 x 500');
+    assert_equals(img.width, 400, 'width');
+    assert_equals(img.height, 500, 'height');
+    assert_equals(img.naturalWidth, 400, 'naturalWidth');
+    assert_equals(img.naturalHeight, 500, 'naturalHeight');
+
+    await updateAttribute(img, 'width', '800');
+    assert_equals(img.width, 800, 'width');
+    assert_equals(img.height, 1000, 'height');
+    assert_equals(img.naturalWidth, 400, 'naturalWidth');
+    assert_equals(img.naturalHeight, 500, 'naturalHeight');
+
+    await updateAttribute(img, 'style', 'height:800px;');
+    assert_equals(img.width, 800, 'width');
+    assert_equals(img.height, 800, 'height');
+    assert_equals(img.naturalWidth, 400, 'naturalWidth');
+    assert_equals(img.naturalHeight, 500, 'naturalHeight');
+
+    await updateAttribute(img, 'width', '');
+    assert_equals(img.width, 640, 'width');
+    assert_equals(img.height, 800, 'height');
+    assert_equals(img.naturalWidth, 400, 'naturalWidth');
+    assert_equals(img.naturalHeight, 500, 'naturalHeight');
+
+    await updateAttribute(img, 'style', 'height:800px; writing-mode: vertical-rl;');
+    assert_equals(img.width, 640, 'width');
+    assert_equals(img.height, 800, 'height');
+    assert_equals(img.naturalWidth, 400, 'naturalWidth');
+    assert_equals(img.naturalHeight, 500, 'naturalHeight');
+
+    await updateAttribute(img, 'style', 'height:800px; writing-mode: horizontal-tb;');
+    assert_equals(img.width, 640, 'width');
+    assert_equals(img.height, 800, 'height');
+    assert_equals(img.naturalWidth, 400, 'naturalWidth');
+    assert_equals(img.naturalHeight, 500, 'naturalHeight');
+  }, 'Test intrinsicsize for html image element, src=' + src);
+}
+</script>
+</body>
rename from testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers
rename to testing/web-platform/tests/html/semantics/embedded-content/the-img-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/html/semantics/embedded-content/the-video-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<body>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+'use strict';
+
+promise_test(async() => {
+  var video = document.createElement('video');
+  document.body.appendChild(video);
+  video.src = "/images/pattern.ogv";
+  await new Promise(resolve =>
+    video.addEventListener('canplaythrough', () => resolve(), {once: true}));
+  video.intrinsicSize = '400 x 500';
+  assert_equals(video.getBoundingClientRect().width, 400, 'width');
+  assert_equals(video.getBoundingClientRect().height, 500, 'height');
+  assert_equals(video.videoWidth, 400, 'naturalWidth');
+  assert_equals(video.videoHeight, 500, 'naturalHeight');
+
+  video.width = '800';
+  assert_equals(video.getBoundingClientRect().width, 800, 'width');
+  assert_equals(video.getBoundingClientRect().height, 1000, 'height');
+  assert_equals(video.videoWidth, 400, 'naturalWidth');
+  assert_equals(video.videoHeight, 500, 'naturalHeight');
+
+  video.style = 'height:800px;';
+  assert_equals(video.getBoundingClientRect().width, 800, 'width');
+  assert_equals(video.getBoundingClientRect().height, 800, 'height');
+  assert_equals(video.videoWidth, 400, 'naturalWidth');
+  assert_equals(video.videoHeight, 500, 'naturalHeight');
+
+  video.removeAttribute('width');
+  assert_equals(video.getBoundingClientRect().width, 640, 'width');
+  assert_equals(video.getBoundingClientRect().height, 800, 'height');
+  assert_equals(video.videoWidth, 400, 'naturalWidth');
+  assert_equals(video.videoHeight, 500, 'naturalHeight');
+}, 'Test intrinsicsize for html video element');
+</script>
+</body>
copy from testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers
copy to testing/web-platform/tests/html/semantics/embedded-content/the-video-element/intrinsicsize/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers