1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

LibWeb: Add CSSStyleSheet.{insert,delete,remove}Rule() APIs

Note that insertRule() is really just a big TODO right now.
This commit is contained in:
Andreas Kling 2021-09-29 20:28:32 +02:00
parent 3a4565beec
commit 30d710a0a2
5 changed files with 73 additions and 2 deletions

View file

@ -1,6 +1,7 @@
interface CSSStyleSheet : StyleSheet {
// readonly attribute CSSRule? ownerRule;
[SameObject] readonly attribute CSSRuleList cssRules;
// unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
// undefined deleteRule(unsigned long index);
unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
undefined deleteRule(unsigned long index);
undefined removeRule(unsigned long index);
};