mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibWeb: Implement CSSStyleSheet.addRule()
This is a legacy method that has been superseded by `insertRule()`, although it is supported by all modern browser engines.
This commit is contained in:
parent
87b52a1816
commit
3ea318ca8b
Notes:
sideshowbarker
2024-07-17 07:09:53 +09:00
Author: https://github.com/tcl3
Commit: 3ea318ca8b
Pull-request: https://github.com/SerenityOS/serenity/pull/23327
Reviewed-by: https://github.com/awesomekling
5 changed files with 68 additions and 1 deletions
|
@ -18,7 +18,7 @@ interface CSSStyleSheet : StyleSheet {
|
|||
|
||||
// https://drafts.csswg.org/cssom/#legacy-css-style-sheet-members
|
||||
[SameObject, ImplementedAs=css_rules] readonly attribute CSSRuleList rules;
|
||||
// FIXME: long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
|
||||
long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
|
||||
undefined removeRule(unsigned long index);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue