Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-transitions/crashtests/transition-asan.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<title>Disposing a calc transition should not cause a heap-use-after-free crash</title>
<style>
#test { transition: width 1s; }
</style>
<div id="test"></div>
<script>
test.style.width = 'calc(100px + 100%)';
requestAnimationFrame(function() {
test.style.width = '100px';
requestAnimationFrame(function() {
document.body.removeChild(test);
document.documentElement.classList.remove('test-wait');
});
});
</script>
</html>