summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transitions/transition-property-042-manual.html
blob: 24e3d5bfc347a29d4e43d654f71bf5c6d4949bfd (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Transitions Test: transition-property - vertical-align</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com">
<link rel="help" href="https://drafts.csswg.org/web-animations-1/#animation-type">
<link rel="help" href="https://www.w3.org/TR/CSS22/visudet.html#propdef-vertical-align">
<meta name="assert" content="Test checks that the 'vertical-align' property is animatable.">
<style>
  #test {
    transition-duration: 2s;
    transition-property: vertical-align;
    transition-timing-function: linear;
    vertical-align: top;
  }
</style>
<body>
  <p>Click the cat image below. Test passes if the 'FillerText' moves down to the bottom of the cat image gradually not immediately.</p>
  <div id="test">
    FillerText<image id="ref" src="support/cat.png"></image>
  </div>
  <script>
    (function() {
      var ref = document.querySelector("#ref");
      ref.addEventListener("click", function(evt) {
        document.querySelector("#test").setAttribute("style", "vertical-align: bottom;");
      }, false);
    })();
  </script>
</body>