summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/transitions/override-transition-crash.html
blob: 6ce23c2d8dbe3d75803466bc43a5be29b8311970 (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
<!DOCTYPE html>

<html>
<head>
  <style type="text/css" media="screen">
    #box {
      position: relative;
      height: 100px;
      width: 100px;
      background-color: blue;
      -webkit-transition-duration: 1s;
      -webkit-transition-property: top, -webkit-text-fill-color, text-shadow, all;
    }
    #box.change {
      -webkit-text-fill-color: white;
      top: 100px;
      text-shadow: 1px 1px 1px rgba(0,0,0, .8);
    }
  </style>
  <script>
    if (window.testRunner) {
      testRunner.dumpAsText();
    }
    
    function start()
    {
        var box = document.getElementById('box');
        box.className = "change";
    }
    
    window.addEventListener('load', start, false);
  </script>
</head>
<body>

<p>
This tests a crash that was occuring when you have both an explicit property and 'all' in the -webkit-transition-property CSS property. The crash would occur when you start the transition 
of the explicit property. Transitions of 3 sample properties are used (top, -webkit-text-fill-color, 
and text-shadow), to test 3 separate code paths for property animation.

This test should not crash.
</p>
<div id="box">
    Text With a Shadow
</div>
</body>
</html>