LibWeb: Implement CSSKeyframesRule.cssRuleList

To make this straightforward, CSSKeyframesRule now uses a CSSRuleList
for internal storage.
This commit is contained in:
Andreas Kling
2024-06-14 17:04:56 +02:00
committed by Andreas Kling
parent a12d28fd30
commit 7f2c833a39
Notes: sideshowbarker 2024-07-17 05:01:20 +09:00
8 changed files with 50 additions and 22 deletions

View File

@@ -0,0 +1,17 @@
<style>
@keyframes foo {
from { color: black; }
to { color: white; }
}
</style>
<script src="../include.js"></script>
<script>
test(() => {
const fooRule = document.styleSheets[0].cssRules[0];
println("fooRule: " + fooRule + " ~ " + fooRule.cssText);
println("fooRule.cssRules: " + fooRule.cssRules);
println("fooRule.cssRules[0]: " + fooRule.cssRules[0] + " ~ " + fooRule.cssRules[0].cssText);
println("fooRule.cssRules[0].style.parentRule: " + fooRule.cssRules[0].style.parentRule + " ~ " + fooRule.cssRules[0].style.parentRule.cssText);
println("fooRule.cssRules[0].style.parentRule === fooRule.cssRules[0]: " + (fooRule.cssRules[0].style.parentRule === fooRule.cssRules[0]));
});
</script>