Bug 1517746 [wpt PR 14717] - Use expected CSSValue type for initial border-image-slice., a=testonly
authorRune Lillesveen <futhark@chromium.org>
Thu, 31 Jan 2019 15:44:02 +0000
changeset 457861 7d38897c8194cfccca7736fb6a14178d6a8084f6
parent 457860 f551b250bc43d9542baf1a2689cb29a4ed9265d9
child 457862 1b22d48a609ca277ac79cffcf2e90698b2c4481b
push id35518
push useropoprus@mozilla.com
push dateFri, 08 Feb 2019 09:55:14 +0000
treeherdermozilla-central@3a3e393396f4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1517746, 14717, 918243, 1396118, 619951
milestone67.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 1517746 [wpt PR 14717] - Use expected CSSValue type for initial border-image-slice., a=testonly Automatic update from web-platform-tests Use expected CSSValue type for initial border-image-slice. The apply code early returns if the type is not a CSSBorderImageSliceValue. Create an initial value which matches the expected type. Bug: 918243 Change-Id: I3228d2410789306d915db892ad54e918631b8864 Reviewed-on: https://chromium-review.googlesource.com/c/1396118 Reviewed-by: Xida Chen <xidachen@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#619951} -- wpt-commits: 4bd9c6aa5b9401677d628fb937182ae6c820567e wpt-pr: 14717
testing/web-platform/tests/css/css-backgrounds/border-image-slice-shorthand-reset.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-backgrounds/border-image-slice-shorthand-reset.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image-slice" />
+<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#border-image" />
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+  div {
+    border: 1px solid;
+    border-image-slice: 1;
+  }
+  div {
+    /* Should reset border-image-slice */
+    border-image: linear-gradient(black, black);
+  }
+</style>
+<div>This text should not have a border, just corner dots</div>
+<script>
+  test(() => {
+    assert_equals(getComputedStyle(document.querySelector("div")).borderImageSlice, "100%");
+  }, "Check that the border-image shorthand resets border-image-slice to its initial value.");
+</script>