mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Allow indexing into CSSStyleDeclaration by number
The `item(unsigned long index)` method is marked as a getter in IDL, so let's treat it as such.
This commit is contained in:
parent
33e4a35d2d
commit
08cf35cf9a
Notes:
sideshowbarker
2024-07-16 22:22:13 +09:00
Author: https://github.com/AtkinsSJ
Commit: 08cf35cf9a
Pull-request: https://github.com/SerenityOS/serenity/pull/21269
2 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,7 @@ interface CSSStyleDeclaration {
|
|||
[CEReactions] attribute CSSOMString cssText;
|
||||
|
||||
readonly attribute unsigned long length;
|
||||
CSSOMString item(unsigned long index);
|
||||
getter CSSOMString item(unsigned long index);
|
||||
|
||||
CSSOMString getPropertyValue(CSSOMString property);
|
||||
CSSOMString getPropertyPriority(CSSOMString property);
|
||||
|
@ -13,4 +13,6 @@ interface CSSStyleDeclaration {
|
|||
[CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
|
||||
[CEReactions] CSSOMString removeProperty(CSSOMString property);
|
||||
|
||||
// FIXME: readonly attribute CSSRule? parentRule;
|
||||
// FIXME: [CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cssFloat;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue