10 CSS transitions and animations for baseline-shift are broken unless a
11 numerical underlying value is specified. See crbug.com/
304007.
26 <template id=
"target-template">
27 <svg width=
"30" height=
"50">
29 We have to specify the target class on the text element because numerical
30 values of baseline-shift are not inherited properly. See crbug.com/304006.
32 <text x=
"0" y=
"25" font-size=
"10" class=
"target">
37 <script src=
"resources/interpolation-test.js"></script>
40 property
: 'baseline-shift',
44 {at
: -0.25, is
: '-5px'},
46 {at
: 0.25, is
: '5px'},
47 {at
: 0.5, is
: '10px'},
48 {at
: 0.75, is
: '15px'},
50 {at
: 1.25, is
: '25px'},
54 property
: 'baseline-shift',
58 {at
: -0.25, is
: '-5px'},
60 {at
: 0.25, is
: '5px'},
61 {at
: 0.5, is
: '10px'},
62 {at
: 0.75, is
: '15px'},
64 {at
: 1.25, is
: '25px'},
68 property
: 'baseline-shift',
72 {at
: -0.25, is
: '32.5px'},
74 {at
: 0.25, is
: '27.5px'},
75 {at
: 0.5, is
: '25px'},
76 {at
: 0.75, is
: '22.5px'},
78 {at
: 1.25, is
: '17.5px'},
82 property
: 'baseline-shift',
86 {at
: -0.25, is
: '-5px'},
88 {at
: 0.25, is
: '5px'},
89 {at
: 0.5, is
: '10px'},
90 {at
: 0.75, is
: '15px'},
92 {at
: 1.25, is
: '25px'},
96 property
: 'baseline-shift',
100 {at
: -0.25, is
: '-15px'},
101 {at
: 0, is
: '-10px'},
102 {at
: 0.25, is
: '-5px'},
103 {at
: 0.5, is
: '0px'},
104 {at
: 0.75, is
: '5px'},
106 {at
: 1.25, is
: '15px'},
109 assertInterpolation({
110 property
: 'baseline-shift',
114 {at
: -0.25, is
: '-25px'},
116 {at
: 0.25, is
: '25px'},
117 {at
: 0.5, is
: '50px'},
118 {at
: 0.75, is
: '75px'},
119 {at
: 1, is
: '100px'},
120 {at
: 1.25, is
: '125px'},
122 assertInterpolation({
123 property
: 'baseline-shift',
127 {at
: -0.25, is
: '125px'},
128 {at
: 0, is
: '100px'},
129 {at
: 0.25, is
: '75px'},
130 {at
: 0.5, is
: '50px'},
131 {at
: 0.75, is
: '25px'},
133 {at
: 1.25, is
: '-25px'},
135 assertNoInterpolation({
136 property
: 'baseline-shift',
140 assertNoInterpolation({
141 property
: 'baseline-shift',
145 assertInterpolation({
146 property
: 'baseline-shift',
150 {at
: -0.25, is
: '228.720474243164px'},
152 {at
: 0.25, is
: '149.232284545898px'},
153 {at
: 0.75, is
: '69.7440948486328px'},
155 {at
: 1.25, is
: '-9.74409484863281px'},
157 assertInterpolation({
158 property
: 'baseline-shift',
162 {at
: -0.25, is
: '-40px'},
164 {at
: 0.25, is
: '60px'},
165 {at
: 0.75, is
: '160px'},
166 {at
: 1, is
: '210px'},
167 {at
: 1.25, is
: '260px'},
169 assertInterpolation({
170 property
: 'baseline-shift',
174 {at
: -0.25, is
: '-45px'},
176 {at
: 0.25, is
: '105px'},
177 {at
: 0.75, is
: '255px'},
178 {at
: 1, is
: '330px'},
179 {at
: 1.25, is
: '405px'},