mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Reject invalid keyframe offset values
This commit is contained in:
committed by
Andreas Kling
parent
e13cd914a9
commit
73aadddbc1
Notes:
sideshowbarker
2024-07-17 14:36:19 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/73aadddbc1 Pull-request: https://github.com/SerenityOS/serenity/pull/24514
@@ -19,6 +19,10 @@
|
||||
checkException('KeyframeEffect with NaN endDelay value', () => new KeyframeEffect(null, null, { endDelay: NaN }));
|
||||
checkException('KeyframeEffect with NaN iterations', () => new KeyframeEffect(null, null, { iterations: NaN }));
|
||||
checkException('KeyframeEffect with non-"auto" string duration', () => new KeyframeEffect(null, null, { duration: 'abc' }))
|
||||
checkException('KeyframeEffect with non-numeric offset', () => new KeyframeEffect(null, [{ offset: 'abc' }], {}));
|
||||
checkException('KeyframeEffect with invalid numeric offset', () => new KeyframeEffect(null, [{ offset: -1 }], {}));
|
||||
|
||||
println('');
|
||||
|
||||
// Test valid values
|
||||
checkException('KeyframeEffect with infinite options value', () => new KeyframeEffect(null, null, Infinity));
|
||||
|
||||
Reference in New Issue
Block a user