Bug 1489593 [wpt PR 12899] - Add intrinsicSize attribute to SVGImageElement, a=testonly
authorLuna Lu <loonybear@chromium.org>
Thu, 13 Sep 2018 02:51:16 +0000
changeset 492154 7d658a41c5afcbb0b2ff1663a5e2fbfdacb1ce05
parent 492153 af72430d508a643fdb1589a506c100b2859a7c73
child 492155 e042f3bc519880d09702b63cf2bc3e66c1eca3d5
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
bugs1489593, 12899, 874629, 1210544, 590065
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 1489593 [wpt PR 12899] - Add intrinsicSize attribute to SVGImageElement, a=testonly Automatic update from web-platform-testsAdd intrinsicSize attribute to SVGImageElement Design doc: https://docs.google.com/document/d/1yh_-ayeaFV0EjuR51U641zbrPAB0Baqj6UrC9bT9iqQ/edit#heading=h.y7amr11fn0tb This CL implements "intrinsicSize" attribute to SVGImageElement. This attribute has been added to HTMLImageElement and HTMLVideoElement. The value of "intrinsicSize" overrides the intrinsic size: 1. When no width and height is specified, the value of "intrinsicSize" specifies the <svg:image> element's layout size. 2. When one dimension is specified, the value of "intrinsicSize" is used as an aspect ratio to determine the other dimension. 3. If both width and height are specified, "intrinsicSize" has no effect. Bug: 874629 Cq-Include-Trybots: luci.chromium.try‚Äč:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I9023d6cf7a818c983155efc12505f1d6fd18de43 Reviewed-on: https://chromium-review.googlesource.com/1210544 Reviewed-by: Steve Kobes <skobes@chromium.org> Commit-Queue: Luna Lu <loonybear@chromium.org> Cr-Commit-Position: refs/heads/master@{#590065} -- wpt-commits: 8c2f99c5cafbcb0bb0a316b79784ec50729686c3 wpt-pr: 12899
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/feature-policy/experimental-features/intrinsicSize-with-responsive-images.tentative.https.sub.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-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
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -183578,16 +183578,28 @@
       [
        "/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",
        "=="
       ]
@@ -279503,16 +279515,21 @@
      {}
     ]
    ],
    "feature-policy/README.md": [
     [
      {}
     ]
    ],
+   "feature-policy/experimental-features/intrinsicsize-svg-image-ref.html": [
+    [
+     {}
+    ]
+   ],
    "feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html.headers": [
     [
      {}
     ]
    ],
    "feature-policy/experimental-features/resources/async-script.js": [
     [
      {}
@@ -354634,25 +354651,25 @@
     ]
    ],
    "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.https.sub.html": [
-    [
-     "/feature-policy/experimental-features/intrinsicSize-with-responsive-images.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/intrinsicsize-with-responsive-images.tentative.html": [
+    [
+     "/feature-policy/experimental-features/intrinsicsize-with-responsive-images.tentative.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",
      {}
     ]
@@ -593431,21 +593448,29 @@
   "feature-policy/README.md": [
    "48cb95ebf749d67b4965f5e24f20e36ede749600",
    "support"
   ],
   "feature-policy/experimental-features/document-write.tentative.html": [
    "f0148783f1246b6bd60dabd837c64fc6d903e542",
    "testharness"
   ],
-  "feature-policy/experimental-features/intrinsicSize-with-responsive-images.tentative.https.sub.html": [
+  "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-without-unsized-media.tentative.https.sub.html": [
+  "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": [
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-svg-image-ref.html
@@ -0,0 +1,22 @@
+<!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>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/feature-policy/experimental-features/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="/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>
rename from testing/web-platform/tests/feature-policy/experimental-features/intrinsicSize-with-responsive-images.tentative.https.sub.html
rename to testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-with-responsive-images.tentative.html
rename from testing/web-platform/tests/feature-policy/experimental-features/intrinsicSize-without-unsized-media.tentative.https.sub.html
rename to testing/web-platform/tests/feature-policy/experimental-features/intrinsicsize-without-unsized-media.tentative.https.sub.html