mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
31 lines
941 B
HTML
31 lines
941 B
HTML
<html class="reftest-wait">
|
|
<title>Test for CSS transitions and re-wrapping of inlines</title>
|
|
<style type="text/css">
|
|
#test { -moz-transition: 5s color linear 200s; }
|
|
</style>
|
|
<script type="text/javascript">
|
|
|
|
window.onload = run;
|
|
|
|
function run() {
|
|
var test = document.getElementById("test");
|
|
var unused = test.offsetWidth;
|
|
// FIXME (Bug 522595): It's a bug that we need to do this at all: the
|
|
// way we change style data essentially violates style rule
|
|
// immutability because we assume that all of the difference
|
|
// calculation will use PeekStyleData, which is no longer true with
|
|
// transitions.
|
|
unused = getComputedStyle(test, "").color;
|
|
test.style.color = "red";
|
|
unused = test.offsetWidth;
|
|
unused = getComputedStyle(test, "").color;
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
|
|
</script>
|
|
<div style="width: 3em">
|
|
<span id="test" style="color: green">
|
|
This is some text with a transition.
|
|
</span>
|
|
</div>
|