1
0
Fork 0
firefox/testing/web-platform/tests/css/css-ui/interactivity-inert-animated.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

30 lines
896 B
HTML

<!DOCTYPE html>
<title>CSS Basic User Interface Test: animated interactivity:auto should not block click events</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#inertness">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<style>
@keyframes --anim {
0% { interactivity: auto; }
}
#inert {
animation: --anim 10000s step-end;
interactivity: inert;
width: 100px;
height: 100px;
background: lime;
}
</style>
<div id="inert"></div>
<script>
let clicked = false;
inert.addEventListener('click', () => clicked = true);
promise_test(async () => {
await test_driver.click(inert);
assert_true(clicked);
}, "Click event should work for interactivity:auto animation");
</script>