Commit 391dbbef authored by haozhe's avatar haozhe Committed by Commit Bot

Port the border-image-slice-interpolation-stability test

Both Chrome and Firefox pass

The original test is kept because it's in the smoke test

Bug: 900581
Change-Id: Iaa581f78cdde875f25a0accfbd953ba54277e9f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1937513Reviewed-by: default avatarXida Chen <xidachen@chromium.org>
Commit-Queue: Hao Sheng <haozhes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719340}
parent 81b82b25
<!DOCTYPE html>
<meta charset="UTF-8">
<title>border-image-slice interpolation stability</title>
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#border-image-slice">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="target"></div>
<script>
test(function() {
var player = target.animate([
{borderImageSlice: '50'},
{borderImageSlice: '50'},
], {
duration: 1,
fill: 'forwards',
easing: 'cubic-bezier(0, 1.5, 1, 1.5)',
});
player.pause();
player.currentTime = 0.6345195996109396
assert_equals(getComputedStyle(target).borderImageSlice, '50');
});
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment