| Index: third_party/WebKit/LayoutTests/fast/css/variables/no-assert-mixing-variables-and-animation.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/variables/no-assert-mixing-variables-and-animation.html b/third_party/WebKit/LayoutTests/fast/css/variables/no-assert-mixing-variables-and-animation.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..582af3576a9cb049dd1edbb089d6a4a85c9fdbf6
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/variables/no-assert-mixing-variables-and-animation.html
|
| @@ -0,0 +1,39 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../resources/testharness.js"></script>
|
| +<script src="../../../resources/testharnessreport.js"></script>
|
| +
|
| +<style>
|
| +body {
|
| + --b: 420px;
|
| +}
|
| +#element {
|
| + --a: var(--b);
|
| + width: 100px;
|
| + height: 100px;
|
| + background-color: red;
|
| + transition: width 1s;
|
| +}
|
| +
|
| +#element.triggered {
|
| + width: var(--a);
|
| +}
|
| +</style>
|
| +
|
| +<div id='element'></div>
|
| +
|
| +<script>
|
| +var test = async_test("this test passes if it doesn't assert");
|
| +
|
| +requestAnimationFrame(x => {
|
| + element.classList.add('triggered');
|
| + requestAnimationFrame(x => {
|
| + requestAnimationFrame(x => {
|
| + requestAnimationFrame(x => {
|
| + requestAnimationFrame(x => {
|
| + test.done();
|
| + })
|
| + })
|
| + })
|
| + })
|
| +});
|
| +</script>
|
|
|