From 253e9c98d5cc494dbeae1c83e3c15fce4179607e Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Wed, 12 Jun 2019 17:30:55 +0900 Subject: [PATCH] add CSS Backgrounds and Borders types --- baselines/dom.generated.d.ts | 86 +++++++++---------- .../CSS Backgrounds and Borders Level 4.widl | 22 +++++ .../idl/CSS Backgrounds and Borders.widl | 43 ++++++++++ inputfiles/idlSources.json | 8 ++ inputfiles/removedTypes.json | 10 +++ 5 files changed, 126 insertions(+), 43 deletions(-) create mode 100644 inputfiles/idl/CSS Backgrounds and Borders Level 4.widl create mode 100644 inputfiles/idl/CSS Backgrounds and Borders.widl diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index d0debd766..bac03d4e6 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -2631,53 +2631,53 @@ interface CSSStyleDeclaration { animationPlayState: string; animationTimingFunction: string; backfaceVisibility: string | null; - background: string | null; - backgroundAttachment: string | null; - backgroundClip: string | null; - backgroundColor: string | null; - backgroundImage: string | null; - backgroundOrigin: string | null; - backgroundPosition: string | null; - backgroundPositionX: string | null; - backgroundPositionY: string | null; - backgroundRepeat: string | null; - backgroundSize: string | null; + background: string; + backgroundAttachment: string; + backgroundClip: string; + backgroundColor: string; + backgroundImage: string; + backgroundOrigin: string; + backgroundPosition: string; + backgroundPositionX: string; + backgroundPositionY: string; + backgroundRepeat: string; + backgroundSize: string; baselineShift: string | null; - border: string | null; - borderBottom: string | null; - borderBottomColor: string | null; - borderBottomLeftRadius: string | null; - borderBottomRightRadius: string | null; - borderBottomStyle: string | null; - borderBottomWidth: string | null; + border: string; + borderBottom: string; + borderBottomColor: string; + borderBottomLeftRadius: string; + borderBottomRightRadius: string; + borderBottomStyle: string; + borderBottomWidth: string; borderCollapse: string | null; - borderColor: string | null; - borderImage: string | null; - borderImageOutset: string | null; - borderImageRepeat: string | null; - borderImageSlice: string | null; - borderImageSource: string | null; - borderImageWidth: string | null; - borderLeft: string | null; - borderLeftColor: string | null; - borderLeftStyle: string | null; - borderLeftWidth: string | null; - borderRadius: string | null; - borderRight: string | null; - borderRightColor: string | null; - borderRightStyle: string | null; - borderRightWidth: string | null; + borderColor: string; + borderImage: string; + borderImageOutset: string; + borderImageRepeat: string; + borderImageSlice: string; + borderImageSource: string; + borderImageWidth: string; + borderLeft: string; + borderLeftColor: string; + borderLeftStyle: string; + borderLeftWidth: string; + borderRadius: string; + borderRight: string; + borderRightColor: string; + borderRightStyle: string; + borderRightWidth: string; borderSpacing: string | null; - borderStyle: string | null; - borderTop: string | null; - borderTopColor: string | null; - borderTopLeftRadius: string | null; - borderTopRightRadius: string | null; - borderTopStyle: string | null; - borderTopWidth: string | null; - borderWidth: string | null; + borderStyle: string; + borderTop: string; + borderTopColor: string; + borderTopLeftRadius: string; + borderTopRightRadius: string; + borderTopStyle: string; + borderTopWidth: string; + borderWidth: string; bottom: string | null; - boxShadow: string | null; + boxShadow: string; boxSizing: string; breakAfter: string | null; breakBefore: string | null; diff --git a/inputfiles/idl/CSS Backgrounds and Borders Level 4.widl b/inputfiles/idl/CSS Backgrounds and Borders Level 4.widl new file mode 100644 index 000000000..e646a578f --- /dev/null +++ b/inputfiles/idl/CSS Backgrounds and Borders Level 4.widl @@ -0,0 +1,22 @@ +partial interface CSSStyleDeclaration { + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPosition; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionX; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionY; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionInline; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPositionBlock; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundClip; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRadius; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString cornerShape; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString corners; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLimit; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClip; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipTop; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipRight; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipBottom; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderClipLeft; +}; diff --git a/inputfiles/idl/CSS Backgrounds and Borders.widl b/inputfiles/idl/CSS Backgrounds and Borders.widl new file mode 100644 index 000000000..7b9d7fd2d --- /dev/null +++ b/inputfiles/idl/CSS Backgrounds and Borders.widl @@ -0,0 +1,43 @@ +partial interface CSSStyleDeclaration { + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundImage; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundRepeat; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundAttachment; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundPosition; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundClip; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundOrigin; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString backgroundSize; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString background; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderColor; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopStyle; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightStyle; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomStyle; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftStyle; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderStyle; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopWidth; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRightWidth; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomWidth; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeftWidth; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderWidth; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTop; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRight; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottom; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderLeft; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString border; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopLeftRadius; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderTopRightRadius; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomRightRadius; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderBottomLeftRadius; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderRadius; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageSource; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageSlice; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageWidth; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageOutset; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImageRepeat; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString borderImage; + [CEReactions] attribute [TreatNullAs=EmptyString] CSSOMString boxShadow; +}; diff --git a/inputfiles/idlSources.json b/inputfiles/idlSources.json index 713061c9d..9f4a1e21a 100644 --- a/inputfiles/idlSources.json +++ b/inputfiles/idlSources.json @@ -16,6 +16,14 @@ "url": "https://www.w3.org/TR/css-animations-1/", "title": "CSS Animations" }, + { + "url": "https://www.w3.org/TR/css-backgrounds-3/", + "title": "CSS Backgrounds and Borders" + }, + { + "url": "https://drafts.csswg.org/css-backgrounds-4/", + "title": "CSS Backgrounds and Borders Level 4" + }, { "url": "https://www.w3.org/TR/css-ui-3/", "title": "CSS Basic User Interface" diff --git a/inputfiles/removedTypes.json b/inputfiles/removedTypes.json index 92cec2ab5..788f2f6ad 100644 --- a/inputfiles/removedTypes.json +++ b/inputfiles/removedTypes.json @@ -61,6 +61,16 @@ "CSSStyleDeclaration": { "properties": { "property": { + "backgroundPositionBlock": null, + "backgroundPositionInline": null, + "borderClip": null, + "borderClipBottom": null, + "borderClipLeft": null, + "borderClipRight": null, + "borderClipTop": null, + "borderLimit": null, + "cornerShape": null, + "corners": null, "hangingPunctuation": null, "textAlignAll": null }