mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Support @-webkit-keyframes as an alias for @keyframes
This is listed as mandatory in the compat spec.
This commit is contained in:
committed by
Andreas Kling
parent
757795ada4
commit
191e0e8c18
Notes:
github-actions[bot]
2026-02-06 11:08:06 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/191e0e8c181 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7617
19
Tests/LibWeb/Text/input/css/webkit-keyframes-alias.html
Normal file
19
Tests/LibWeb/Text/input/css/webkit-keyframes-alias.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<style id="test-style">
|
||||
@-webkit-keyframes test-animation {
|
||||
0% { opacity: 0; }
|
||||
100% { opacity: 1; }
|
||||
}
|
||||
</style>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
const sheet = document.getElementById("test-style").sheet;
|
||||
const rule = sheet.cssRules[0];
|
||||
|
||||
println(`Rule type: ${rule.type}`);
|
||||
println(`Rule is CSSKeyframesRule: ${rule instanceof CSSKeyframesRule}`);
|
||||
println(`Animation name: ${rule.name}`);
|
||||
println(`Number of keyframes: ${rule.cssRules.length}`);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user