1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibWeb: Add comments and missing items of various IDL files

This commit is contained in:
Bastiaan van der Plaat 2023-10-25 17:27:19 +02:00 committed by Andreas Kling
parent fc46def2f5
commit 169d24ae2e
75 changed files with 233 additions and 129 deletions

View file

@ -1,5 +1,6 @@
#import <CSS/CSSGroupingRule.idl>
// https://drafts.csswg.org/css-conditional-3/#the-cssconditionrule-interface
[Exposed=Window]
interface CSSConditionRule : CSSGroupingRule {
attribute CSSOMString conditionText;

View file

@ -1,6 +1,7 @@
#import <CSS/CSSRule.idl>
#import <CSS/CSSStyleDeclaration.idl>
// https://drafts.csswg.org/css-fonts/#om-fontface
[Exposed=Window]
interface CSSFontFaceRule : CSSRule {
readonly attribute CSSStyleDeclaration style;

View file

@ -1,6 +1,7 @@
#import <CSS/CSSRule.idl>
#import <CSS/CSSRuleList.idl>
// https://drafts.csswg.org/cssom/#the-cssgroupingrule-interface
[Exposed=Window]
interface CSSGroupingRule : CSSRule {
[SameObject, ImplementedAs=css_rules_for_bindings] readonly attribute CSSRuleList cssRules;

View file

@ -2,9 +2,12 @@
#import <CSS/CSSStyleSheet.idl>
#import <CSS/MediaList.idl>
// https://drafts.csswg.org/cssom/#the-cssimportrule-interface
[Exposed=Window]
interface CSSImportRule : CSSRule {
readonly attribute USVString href;
// [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
// FIXME: [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
[SameObject, ImplementedAs=style_sheet_for_bindings] readonly attribute CSSStyleSheet styleSheet;
// FIXME: readonly attribute CSSOMString? layerName;
// FIXME: readonly attribute CSSOMString? supportsText;
};

View file

@ -1,5 +1,6 @@
#import <CSS/CSSRule.idl>
// https://drafts.csswg.org/css-animations-1/#interface-csskeyframerule-idl
[Exposed=Window]
interface CSSKeyframeRule : CSSRule {
attribute CSSOMString keyText;

View file

@ -1,17 +1,14 @@
#import <CSS/CSSRule.idl>
// https://drafts.csswg.org/css-animations-1/#interface-csskeyframesrule
[Exposed=Window]
interface CSSKeyframesRule : CSSRule {
attribute CSSOMString name;
// FIXME: readonly attribute CSSRuleList cssRules;
readonly attribute unsigned long length;
// FIXME: Implement this
// readonly attribute CSSRuleList cssRules;
getter CSSKeyframeRule (unsigned long index);
// FIXME: Implement these
// undefined appendRule(CSSOMString rule);
// undefined deleteRule(CSSOMString select);
// CSSKeyframeRule? findRule(CSSOMString select);
// FIXME: undefined appendRule(CSSOMString rule);
// FIXME: undefined deleteRule(CSSOMString select);
// FIXME: CSSKeyframeRule? findRule(CSSOMString select);
};

View file

@ -1,6 +1,7 @@
#import <CSS/CSSConditionRule.idl>
#import <CSS/MediaList.idl>
// https://drafts.csswg.org/css-conditional-3/#the-cssmediarule-interface
[Exposed=Window]
interface CSSMediaRule : CSSConditionRule {
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;

View file

@ -1,15 +1,15 @@
#import <CSS/CSSStyleSheet.idl>
// https://www.w3.org/TR/cssom/#the-cssrule-interface
[Exposed=Window]
interface CSSRule {
attribute CSSOMString cssText;
readonly attribute CSSRule? parentRule;
readonly attribute CSSStyleSheet? parentStyleSheet;
// the following attribute and constants are historical
readonly attribute unsigned short type;
const unsigned short STYLE_RULE = 1;
const unsigned short CHARSET_RULE = 2;
const unsigned short IMPORT_RULE = 3;

View file

@ -1,5 +1,6 @@
#import <CSS/CSSRule.idl>
// https://www.w3.org/TR/cssom/#the-cssrulelist-interface
[Exposed=Window]
interface CSSRuleList {

View file

@ -15,4 +15,5 @@ interface CSSStyleDeclaration {
// FIXME: readonly attribute CSSRule? parentRule;
// FIXME: [CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cssFloat;
};

View file

@ -1,6 +1,7 @@
#import <CSS/CSSRule.idl>
#import <CSS/CSSStyleDeclaration.idl>
// https://drafts.csswg.org/cssom/#the-cssstylerule-interface
[Exposed=Window]
interface CSSStyleRule : CSSRule {

View file

@ -4,9 +4,24 @@
// https://drafts.csswg.org/cssom/#cssstylesheet
[Exposed=Window]
interface CSSStyleSheet : StyleSheet {
// readonly attribute CSSRule? ownerRule;
// FIXME: constructor(optional CSSStyleSheetInit options = {});
// FIXME: readonly attribute CSSRule? ownerRule;
[SameObject] readonly attribute CSSRuleList cssRules;
unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
undefined deleteRule(unsigned long index);
// FIXME: Promise<CSSStyleSheet> replace(USVString text);
// FIXME: undefined replaceSync(USVString text);
// https://drafts.csswg.org/cssom/#legacy-css-style-sheet-members
// FIXME: [SameObject] readonly attribute CSSRuleList rules;
// FIXME: long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
undefined removeRule(unsigned long index);
};
dictionary CSSStyleSheetInit {
DOMString baseURL = null;
(MediaList or DOMString) media = "";
boolean disabled = false;
};

View file

@ -1,5 +1,6 @@
#import <CSS/CSSConditionRule.idl>
// https://drafts.csswg.org/css-conditional-3/#the-csssupportsrule-interface
[Exposed=Window]
interface CSSSupportsRule : CSSConditionRule {
};

View file

@ -1,3 +1,4 @@
// https://www.w3.org/TR/cssom-1/#the-medialist-interface
[Exposed=Window]
interface MediaList {
[LegacyNullToEmptyString] stringifier attribute CSSOMString mediaText;

View file

@ -1,6 +1,7 @@
#import <DOM/EventTarget.idl>
#import <DOM/EventHandler.idl>
// https://drafts.csswg.org/cssom-view/#the-mediaquerylist-interface
[Exposed=Window]
interface MediaQueryList : EventTarget {
readonly attribute CSSOMString media;

View file

@ -6,10 +6,12 @@
[Exposed=Window]
interface StyleSheet {
readonly attribute Element? ownerNode;
readonly attribute CSSOMString type;
readonly attribute USVString? href;
// FIXME: readonly attribute (Element or ProcessingInstruction)? ownerNode;
readonly attribute Element? ownerNode;
readonly attribute CSSStyleSheet? parentStyleSheet;
readonly attribute DOMString? title;
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;

View file

@ -1,5 +1,6 @@
#import <CSS/CSSStyleSheet.idl>
// https://drafts.csswg.org/cssom/#the-stylesheetlist-interface
[Exposed=Window]
interface StyleSheetList {
getter CSSStyleSheet? item(unsigned long index);

View file

@ -1,5 +1,6 @@
#import <DOM/EventTarget.idl>
// https://drafts.csswg.org/cssom-view/#the-visualviewport-interface
[Exposed=Window]
interface VisualViewport : EventTarget {