1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
7 <title>Opacity Transitions and Stacking Context
</title>
8 <style type=
"text/css" media=
"screen">
14 background-color: green;
15 -webkit-transition-property: opacity;
16 -webkit-transition-timing-function: linear;
17 -webkit-transition-duration:
5s;
30 background-color: blue;
39 background-color: orange;
43 <script type=
"text/javascript" charset=
"utf-8">
44 if (window.layoutTestController)
45 layoutTestController.waitUntilDone();
49 var container = document.getElementById('first');
50 container.style.opacity =
1;
52 // dump the tree in the middle of the transition
53 if (window.layoutTestController) {
54 if (layoutTestController.pauseTransitionAtTimeOnElementWithId)
55 window.setTimeout(function() { layoutTestController.pauseTransitionAtTimeOnElementWithId(
"opacity",
2.5,
"first"); layoutTestController.notifyDone(); },
0);
57 window.setTimeout(function() { layoutTestController.notifyDone(); },
2500);
61 window.addEventListener('load', runTest, false);
66 <div class=
"container" id=
"first">
67 <div class=
"box"></div>
68 <div class=
"indicator"></div>