Bug 1495155 [wpt PR 13267] - Improve border images, a=testonly
authorServo WPT Sync <32481905+servo-wpt-sync@users.noreply.github.com>
Fri, 05 Oct 2018 14:21:26 +0000
changeset 495807 66e07c98bd1e3135ac1f3bf636031f35a5b109bf
parent 495806 9de10ce5fa72aee30f70bc222b4515ecfe8908d0
child 495808 51dba78486d91b22b8e5ddd019f050084839720d
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
bugs1495155, 13267
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 1495155 [wpt PR 13267] - Improve border images, a=testonly Automatic update from web-platform-testsMerge pull request #13267 from web-platform-tests/sync_63df09482d5de0087f766774f9b58815540704b6 Merge pull request #13267 from sync_63df09482d5de0087f766774f9b58815540704b6 -- wpt-commits: ead79336e78ca821061c2d58b09a57f911536dba wpt-pr: 13267
testing/web-platform/tests/css/css-backgrounds/border-image-width-008-ref.html
testing/web-platform/tests/css/css-backgrounds/border-image-width-008.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-backgrounds/border-image-width-008-ref.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>border-image with different widths</title>
+<style>
+    #ref {
+        width: 360px;
+        height: 240px;
+        border-style: solid;
+        border-width: 40px 40px 20px 0px;
+        border-image-source: url("support/border.png");
+        border-image-slice: 27;
+    }
+</style>
+<body>
+    <div id="ref"></div>
+</body>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-backgrounds/border-image-width-008.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>border-image-width has the same effect as a border-width and the image is displayed even if border-width is zero</title>
+<link rel="match" href="border-image-width-008-ref.html">
+<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#propdef-border-image-width" />
+<style>
+    #test {
+        width: 400px;
+        height: 300px;
+        border-style: solid;
+        /* Note: Chrome does not display an image if border-width is 0 */
+        border-width: 0px;
+        border-image-source: url("support/border.png");
+        border-image-width: 40px 40px 20px 0px;
+        border-image-slice: 27;
+    }
+</style>
+<body>
+    <div id="test"></div>
+</body>