Bug 1453683 [wpt PR 10447] - Fix regression allowing text value for -webkit-background-origin, a=testonly
authorRob Buis <rob.buis@samsung.com>
Sun, 22 Apr 2018 08:50:01 +0000
changeset 471408 697915768dc79b473127124d83746d370bc2cf1e
parent 471407 7c0a471a3976103b8d1d36b2d0ea8afef5e95a57
child 471409 f8aebe28f718953583c54d81ff15f7600f17f9b8
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1453683, 10447, 802256, 1008102, 550221
milestone61.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 1453683 [wpt PR 10447] - Fix regression allowing text value for -webkit-background-origin, a=testonly Automatic update from web-platform-testsFix regression allowing text value for -webkit-background-origin Fix regression allowing text value for -webkit-background-origin that was caused by r514365. Code change implemented by Bugs Nash, testcase by Rob Buis. Bug: 802256 Change-Id: I11e2b1b19a374e9f6b9c1091d82882ef526bc63c Reviewed-on: https://chromium-review.googlesource.com/1008102 Commit-Queue: Rob Buis <rob.buis@samsung.com> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#550221} -- wpt-commits: fc7af09fb3eea0ef511a061e5734c1dc8e539b0d wpt-pr: 10447
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/compat/webkit-background-origin-text-ref.html
testing/web-platform/tests/compat/webkit-background-origin-text.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -20692,16 +20692,28 @@
       [
        "/apng/animated-png-timeout-ref.html",
        "=="
       ]
      ],
      {}
     ]
    ],
+   "compat/webkit-background-origin-text.html": [
+    [
+     "/compat/webkit-background-origin-text.html",
+     [
+      [
+       "/compat/webkit-background-origin-text-ref.html",
+       "=="
+      ]
+     ],
+     {}
+    ]
+   ],
    "compat/webkit-linear-gradient-line-bottom.html": [
     [
      "/compat/webkit-linear-gradient-line-bottom.html",
      [
       [
        "/compat/green-ref.html",
        "=="
       ]
@@ -191686,16 +191698,21 @@
      {}
     ]
    ],
    "compat/green-ref.html": [
     [
      {}
     ]
    ],
+   "compat/webkit-background-origin-text-ref.html": [
+    [
+     {}
+    ]
+   ],
    "compat/webkit-text-fill-color-property-001-ref.html": [
     [
      {}
     ]
    ],
    "compat/webkit-text-fill-color-property-002-ref.html": [
     [
      {}
@@ -405440,16 +405457,24 @@
   "compat/interfaces.any.js": [
    "b96341f909d00d6d1f3ee244f174dbe576bc0780",
    "testharness"
   ],
   "compat/webkit-appearance.tentative.html": [
    "19f5d49ab9383759357d9b7cd73f15fe7fff2939",
    "testharness"
   ],
+  "compat/webkit-background-origin-text-ref.html": [
+   "35b0175a64f38fb1e3723f7f634c18d7974a131f",
+   "support"
+  ],
+  "compat/webkit-background-origin-text.html": [
+   "56118dcce579c8a326d2cbe3690d0704d16f75f6",
+   "reftest"
+  ],
   "compat/webkit-linear-gradient-line-bottom.html": [
    "af59a0aa3b8a195ba7ef401b582be9384a23a388",
    "reftest"
   ],
   "compat/webkit-linear-gradient-line-left.html": [
    "f131166051da9a82ede93f076f15832f61f39234",
    "reftest"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/compat/webkit-background-origin-text-ref.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>webkit-background-origin should not accept text as value</title>
+<link rel="author" title="Rob Buis" href="rob.buis@chromium.org">
+<p>There should be a green square below and no red.</p>
+<div style="width: 100px; height: 100px; background-color: green"></div>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/compat/webkit-background-origin-text.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>webkit-background-origin should not accept text as value</title>
+<link rel="author" title="Rob Buis" href="rob.buis@chromium.org">
+<link rel="match" href="webkit-background-origin-text-ref.html">
+<style>
+#target {
+  width: 0px;
+  background-image: linear-gradient(green, green 50%, red 50%, red);
+  background-size: 200px 200px;
+  background-origin: border-box;
+  -webkit-background-origin: text;
+  padding: 25px;
+  border: 25px solid transparent;
+}
+</style>
+<p>There should be a green square below and no red.</p>
+<div id="target"></div>