3 #test { transition: width
1s; }
6 <pre>This test checks that a heap-use-after-free crash does not occur on Valgrind when disposing a calc transition.
7 This test passes if it does not crash under ASAN.
</pre>
11 if (window
.testRunner
) {
12 testRunner
.dumpAsText();
13 testRunner
.waitUntilDone();
15 test
.style
.width
= 'calc(100px + 100%)';
16 requestAnimationFrame(function () {
17 test
.style
.width
= '100px';
18 requestAnimationFrame(function () {
19 document
.body
.removeChild(test
);
20 if (window
.testRunner
)
21 testRunner
.notifyDone();