summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-transitions/transitions-inline-already-wrapped-1.html
blob: f7533f650668606478a06fdebd11f37f40beb09e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html class="reftest-wait">
<title>Test for CSS transitions and re-wrapping of inlines</title>
<style type="text/css">
#test { transition: 5s color linear 200s; }
</style>
<script type="text/javascript">

window.onload = run;

function run() {
  var test = document.getElementById("test");
  var unused = test.offsetWidth;
  test.style.color = "red";
  unused = test.offsetWidth;
  document.documentElement.removeAttribute("class");
}

</script>
<div style="width: 3em">
<span id="test" style="color: green">
This is some text with a transition.
</span>
</div>