mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 21:54:40 +03:00
LibWeb: Add tests for animating unresolved properties
This commit is contained in:
parent
0d70311c90
commit
6bf1a30bf5
Notes:
sideshowbarker
2024-07-17 00:49:59 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/6bf1a30bf5 Pull-request: https://github.com/SerenityOS/serenity/pull/23622 Issue: https://github.com/SerenityOS/serenity/issues/23609
@ -0,0 +1 @@
|
||||
PASS! (Didn't crash)
|
@ -0,0 +1 @@
|
||||
PASS! (Didn't crash)
|
@ -0,0 +1,23 @@
|
||||
<!-- https://github.com/SerenityOS/serenity/issues/23609 -->
|
||||
<style>
|
||||
:root {
|
||||
--accent: #00f;
|
||||
}
|
||||
</style>
|
||||
<div id="foo"></div>
|
||||
<script src="../../include.js"></script>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
document.getElementById("foo").animate({
|
||||
borderTop: ['2px solid var(--accent)'],
|
||||
}, {
|
||||
duration: 1000,
|
||||
iterations: Infinity,
|
||||
});
|
||||
|
||||
requestAnimationFrame(() => {
|
||||
println("PASS! (Didn't crash)");
|
||||
done();
|
||||
});
|
||||
});
|
||||
</script>
|
@ -0,0 +1,26 @@
|
||||
<!-- https://github.com/SerenityOS/serenity/issues/23609 -->
|
||||
<style>
|
||||
:root {
|
||||
--accent: #00f;
|
||||
}
|
||||
|
||||
@keyframes myMove {
|
||||
0% {
|
||||
border-top: 2px solid var(--accent);
|
||||
}
|
||||
}
|
||||
|
||||
div {
|
||||
animation: myMove 1s infinite;
|
||||
}
|
||||
</style>
|
||||
<div></div>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
requestAnimationFrame(() => {
|
||||
println("PASS! (Didn't crash)");
|
||||
done();
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user