Update web-platform-tests to revision 46aeb6c47e00b0cd3ebcab3735ec1aba7806ca79

This commit is contained in:
WPT Sync Bot 2020-01-16 08:22:41 +00:00
parent 7b6e60883f
commit 2ac52623c2
3570 changed files with 12529 additions and 11891 deletions

View file

@ -1,8 +1,7 @@
<!doctype html>
<html class="test-wait">
<title>CSS Animations Test: Chrome crash when removing documentElement and @keyframes stylesheet</title>
<link rel="help" href="https://crbug.com/999522">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
@keyframes anim {
from { color: pink }
@ -14,9 +13,16 @@
</style>
<div></div>
<script>
test(() => {
document.body.offsetTop;
document.querySelector("style").remove();
document.documentElement.remove();
}, "Removing documentElement and @keyframes sheet should not crash.");
window.addEventListener('load', () => {
document.body.offsetTop;
document.querySelector("style").remove();
// We need the root later to remove the test-wait class.
const root = document.documentElement;
document.documentElement.remove();
// rAF to make sure that style runs.
requestAnimationFrame(() => {
root.classList.remove('test-wait');
});
});
</script>