blob: 2d080930504daea2fb579f1470607a84d79f0440 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<!DOCTYPE>
<html>
<head>
<style>
.box {
width: 400px;
height: 100px;
margin: 10px;
border: 1px solid blue;
-webkit-transition-property: text-indent;
-webkit-transition-duration: 1s;
-webkit-transition-timing-function: linear;
}
.indent {
text-indent: 0;
}
#container.final .indent {
text-indent: 100px;
}
</style>
<script src="../animations/resources/animation-test-helpers.js"></script>
<script type="text/javascript">
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.5, 'box1', 'text-indent', 50, 2],
];
function setupTest()
{
document.getElementById('container').className = 'final';
}
runTransitionTest(expectedValues, setupTest);
</script>
</head>
<body>
<div id="container">
<div id="box1" class='indent box'>Text is affected by transition of text-indent.</div>
</div>
<div id="result"></div>
</body>
</html>
|