mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
20 lines
565 B
HTML
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>
|