5 <title>background-size and mask-size transitions on multiple backgrounds/masks
</title>
6 <style type=
"text/css" media=
"screen">
11 border:
1px solid black;
12 background-repeat: no-repeat;
13 -webkit-mask-repeat: no-repeat;
14 -webkit-transition-duration:
1s;
15 -webkit-transition-timing-function: linear;
16 -webkit-transition-property: -webkit-background-size, -webkit-mask-size;
20 background-image: url('../fast/backgrounds/repeat/resources/gradient.gif'), url('../fast/backgrounds/repeat/resources/gradient.gif');
21 background-position:
0 0,
50px
50px;
22 -webkit-background-size:
0%
0%,
50%
50%;
26 -webkit-background-size:
50%
50%,
0%
0%;
30 background-color: gray;
31 -webkit-mask-image: url('../fast/backgrounds/repeat/resources/gradient.gif'), url('../fast/backgrounds/repeat/resources/gradient.gif');
32 -webkit-mask-position:
0 0,
50px
50px;
33 -webkit-mask-size:
0%
0%,
50%
50%;
37 -webkit-mask-size:
50%
50%,
0%
0%;
41 <script src=
"transition-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
42 <script type=
"text/javascript" charset=
"utf-8">
44 const expectedValues = [
45 // [time, element-id, property, expected-value, tolerance]
46 [
0.5, 'box', '-webkit-background-size', [
25,
25],
4],
47 [
0.5, 'box1', '-webkit-mask-size', [
25,
25],
4],
52 document.getElementById('box').className = 'box final';
53 document.getElementById('box1').className = 'box final';
56 runTransitionTest(expectedValues, setupTest, true);
62 <div id=
"box" class=
"box"></div>
63 <div id=
"box1" class=
"box"></div>