Files
ladybird/Tests/LibWeb/Text/input/css/webkit-keyframes-alias.html
Tim Ledbetter 191e0e8c18 LibWeb: Support @-webkit-keyframes as an alias for @keyframes
This is listed as mandatory in the compat spec.
2026-01-25 09:33:24 +01:00

20 lines
565 B
HTML

<!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>