summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/border-image-slice-shorthand-reset.html
blob: 7f178b428de3b3e2b185d3a02eb9baad80e63719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>