@@ -2623,13 +2623,6 @@ declare var CDATASection: {
2623
2623
new(): CDATASection;
2624
2624
};
2625
2625
2626
- /** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
2627
- interface CSS {
2628
- escape(value: string): string;
2629
- supports(property: string, value?: string): boolean;
2630
- }
2631
- declare var CSS: CSS;
2632
-
2633
2626
/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
2634
2627
interface CSSConditionRule extends CSSGroupingRule {
2635
2628
conditionText: string;
@@ -2653,7 +2646,7 @@ declare var CSSFontFaceRule: {
2653
2646
interface CSSGroupingRule extends CSSRule {
2654
2647
readonly cssRules: CSSRuleList;
2655
2648
deleteRule(index: number): void;
2656
- insertRule(rule: string, index: number): number;
2649
+ insertRule(rule: string, index? : number): number;
2657
2650
}
2658
2651
2659
2652
declare var CSSGroupingRule: {
@@ -2719,9 +2712,7 @@ declare var CSSNamespaceRule: {
2719
2712
};
2720
2713
2721
2714
/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
2722
- interface CSSPageRule extends CSSRule {
2723
- readonly pseudoClass: string;
2724
- readonly selector: string;
2715
+ interface CSSPageRule extends CSSGroupingRule {
2725
2716
selectorText: string;
2726
2717
readonly style: CSSStyleDeclaration;
2727
2718
}
@@ -2747,8 +2738,6 @@ interface CSSRule {
2747
2738
readonly PAGE_RULE: number;
2748
2739
readonly STYLE_RULE: number;
2749
2740
readonly SUPPORTS_RULE: number;
2750
- readonly UNKNOWN_RULE: number;
2751
- readonly VIEWPORT_RULE: number;
2752
2741
}
2753
2742
2754
2743
declare var CSSRule: {
@@ -2764,8 +2753,6 @@ declare var CSSRule: {
2764
2753
readonly PAGE_RULE: number;
2765
2754
readonly STYLE_RULE: number;
2766
2755
readonly SUPPORTS_RULE: number;
2767
- readonly UNKNOWN_RULE: number;
2768
- readonly VIEWPORT_RULE: number;
2769
2756
};
2770
2757
2771
2758
/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
@@ -2886,14 +2873,13 @@ interface CSSStyleDeclaration {
2886
2873
content: string;
2887
2874
counterIncrement: string;
2888
2875
counterReset: string;
2889
- cssFloat: string | null ;
2876
+ cssFloat: string;
2890
2877
cssText: string;
2891
2878
cursor: string;
2892
2879
direction: string;
2893
2880
display: string;
2894
2881
dominantBaseline: string;
2895
2882
emptyCells: string;
2896
- enableBackground: string | null;
2897
2883
fill: string;
2898
2884
fillOpacity: string;
2899
2885
fillRule: string;
@@ -2925,7 +2911,6 @@ interface CSSStyleDeclaration {
2925
2911
fontVariantPosition: string;
2926
2912
fontWeight: string;
2927
2913
gap: string;
2928
- glyphOrientationHorizontal: string | null;
2929
2914
glyphOrientationVertical: string;
2930
2915
grid: string;
2931
2916
gridArea: string;
@@ -2949,17 +2934,10 @@ interface CSSStyleDeclaration {
2949
2934
hyphens: string;
2950
2935
imageOrientation: string;
2951
2936
imageRendering: string;
2952
- imeMode: string | null;
2953
2937
inlineSize: string;
2954
2938
justifyContent: string;
2955
2939
justifyItems: string;
2956
2940
justifySelf: string;
2957
- kerning: string | null;
2958
- layoutGrid: string | null;
2959
- layoutGridChar: string | null;
2960
- layoutGridLine: string | null;
2961
- layoutGridMode: string | null;
2962
- layoutGridType: string | null;
2963
2941
left: string;
2964
2942
readonly length: number;
2965
2943
letterSpacing: string;
@@ -2998,53 +2976,6 @@ interface CSSStyleDeclaration {
2998
2976
minHeight: string;
2999
2977
minInlineSize: string;
3000
2978
minWidth: string;
3001
- msContentZoomChaining: string | null;
3002
- msContentZoomLimit: string | null;
3003
- msContentZoomLimitMax: any;
3004
- msContentZoomLimitMin: any;
3005
- msContentZoomSnap: string | null;
3006
- msContentZoomSnapPoints: string | null;
3007
- msContentZoomSnapType: string | null;
3008
- msContentZooming: string | null;
3009
- msFlowFrom: string | null;
3010
- msFlowInto: string | null;
3011
- msFontFeatureSettings: string | null;
3012
- msGridColumn: any;
3013
- msGridColumnAlign: string | null;
3014
- msGridColumnSpan: any;
3015
- msGridColumns: string | null;
3016
- msGridRow: any;
3017
- msGridRowAlign: string | null;
3018
- msGridRowSpan: any;
3019
- msGridRows: string | null;
3020
- msHighContrastAdjust: string | null;
3021
- msHyphenateLimitChars: string | null;
3022
- msHyphenateLimitLines: any;
3023
- msHyphenateLimitZone: any;
3024
- msHyphens: string | null;
3025
- msImeAlign: string | null;
3026
- msOverflowStyle: string | null;
3027
- msScrollChaining: string | null;
3028
- msScrollLimit: string | null;
3029
- msScrollLimitXMax: any;
3030
- msScrollLimitXMin: any;
3031
- msScrollLimitYMax: any;
3032
- msScrollLimitYMin: any;
3033
- msScrollRails: string | null;
3034
- msScrollSnapPointsX: string | null;
3035
- msScrollSnapPointsY: string | null;
3036
- msScrollSnapType: string | null;
3037
- msScrollSnapX: string | null;
3038
- msScrollSnapY: string | null;
3039
- msScrollTranslation: string | null;
3040
- msTextCombineHorizontal: string | null;
3041
- msTextSizeAdjust: any;
3042
- msTouchAction: string | null;
3043
- msTouchSelect: string | null;
3044
- msUserSelect: string | null;
3045
- msWrapFlow: string;
3046
- msWrapMargin: any;
3047
- msWrapThrough: string;
3048
2979
objectFit: string;
3049
2980
objectPosition: string;
3050
2981
opacity: string;
@@ -3073,22 +3004,20 @@ interface CSSStyleDeclaration {
3073
3004
pageBreakBefore: string;
3074
3005
pageBreakInside: string;
3075
3006
paintOrder: string;
3076
- readonly parentRule: CSSRule;
3077
- penAction: string | null;
3007
+ readonly parentRule: CSSRule | null;
3078
3008
perspective: string;
3079
3009
perspectiveOrigin: string;
3080
3010
placeContent: string;
3081
3011
placeItems: string;
3082
3012
placeSelf: string;
3083
- pointerEvents: string | null ;
3013
+ pointerEvents: string;
3084
3014
position: string;
3085
3015
quotes: string;
3086
3016
resize: string;
3087
3017
right: string;
3088
3018
rotate: string;
3089
3019
rowGap: string;
3090
3020
rubyAlign: string;
3091
- rubyOverhang: string | null;
3092
3021
rubyPosition: string;
3093
3022
scale: string;
3094
3023
scrollBehavior: string;
@@ -3119,8 +3048,6 @@ interface CSSStyleDeclaration {
3119
3048
textEmphasisStyle: string;
3120
3049
textIndent: string;
3121
3050
textJustify: string;
3122
- textKashida: string | null;
3123
- textKashidaSpace: string | null;
3124
3051
textOrientation: string;
3125
3052
textOverflow: string;
3126
3053
textRendering: string;
@@ -3181,7 +3108,6 @@ interface CSSStyleDeclaration {
3181
3108
webkitBorderBottomLeftRadius: string;
3182
3109
/** @deprecated */
3183
3110
webkitBorderBottomRightRadius: string;
3184
- webkitBorderImage: string | null;
3185
3111
/** @deprecated */
3186
3112
webkitBorderRadius: string;
3187
3113
/** @deprecated */
@@ -3190,7 +3116,6 @@ interface CSSStyleDeclaration {
3190
3116
webkitBorderTopRightRadius: string;
3191
3117
/** @deprecated */
3192
3118
webkitBoxAlign: string;
3193
- webkitBoxDirection: string | null;
3194
3119
/** @deprecated */
3195
3120
webkitBoxFlex: string;
3196
3121
/** @deprecated */
@@ -3203,18 +3128,6 @@ interface CSSStyleDeclaration {
3203
3128
webkitBoxShadow: string;
3204
3129
/** @deprecated */
3205
3130
webkitBoxSizing: string;
3206
- webkitColumnBreakAfter: string | null;
3207
- webkitColumnBreakBefore: string | null;
3208
- webkitColumnBreakInside: string | null;
3209
- webkitColumnCount: any;
3210
- webkitColumnGap: any;
3211
- webkitColumnRule: string | null;
3212
- webkitColumnRuleColor: any;
3213
- webkitColumnRuleStyle: string | null;
3214
- webkitColumnRuleWidth: any;
3215
- webkitColumnSpan: string | null;
3216
- webkitColumnWidth: any;
3217
- webkitColumns: string | null;
3218
3131
/** @deprecated */
3219
3132
webkitFilter: string;
3220
3133
/** @deprecated */
@@ -3268,7 +3181,7 @@ interface CSSStyleDeclaration {
3268
3181
webkitPerspective: string;
3269
3182
/** @deprecated */
3270
3183
webkitPerspectiveOrigin: string;
3271
- webkitTapHighlightColor: string | null ;
3184
+ webkitTapHighlightColor: string;
3272
3185
/** @deprecated */
3273
3186
webkitTextFillColor: string;
3274
3187
/** @deprecated */
@@ -3295,9 +3208,8 @@ interface CSSStyleDeclaration {
3295
3208
webkitTransitionProperty: string;
3296
3209
/** @deprecated */
3297
3210
webkitTransitionTimingFunction: string;
3298
- webkitUserModify: string | null;
3299
- webkitUserSelect: string | null;
3300
- webkitWritingMode: string | null;
3211
+ /** @deprecated */
3212
+ webkitUserSelect: string;
3301
3213
whiteSpace: string;
3302
3214
widows: string;
3303
3215
width: string;
@@ -3307,12 +3219,13 @@ interface CSSStyleDeclaration {
3307
3219
wordWrap: string;
3308
3220
writingMode: string;
3309
3221
zIndex: string;
3310
- zoom: string | null;
3311
- getPropertyPriority(propertyName: string): string;
3312
- getPropertyValue(propertyName: string): string;
3222
+ /** @deprecated */
3223
+ zoom: string;
3224
+ getPropertyPriority(property: string): string;
3225
+ getPropertyValue(property: string): string;
3313
3226
item(index: number): string;
3314
- removeProperty(propertyName : string): string;
3315
- setProperty(propertyName : string, value: string | null, priority?: string | null ): void;
3227
+ removeProperty(property : string): string;
3228
+ setProperty(property : string, value: string | null, priority?: string): void;
3316
3229
[index: number]: string;
3317
3230
}
3318
3231
@@ -3335,34 +3248,12 @@ declare var CSSStyleRule: {
3335
3248
/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */
3336
3249
interface CSSStyleSheet extends StyleSheet {
3337
3250
readonly cssRules: CSSRuleList;
3338
- /** @deprecated */
3339
- cssText: string;
3340
- /** @deprecated */
3341
- readonly id: string;
3342
- /** @deprecated */
3343
- readonly imports: StyleSheetList;
3344
- /** @deprecated */
3345
- readonly isAlternate: boolean;
3346
- /** @deprecated */
3347
- readonly isPrefAlternate: boolean;
3348
3251
readonly ownerRule: CSSRule | null;
3349
- /** @deprecated */
3350
- readonly owningElement: Element;
3351
- /** @deprecated */
3352
- readonly pages: any;
3353
- /** @deprecated */
3354
- readonly readOnly: boolean;
3355
3252
readonly rules: CSSRuleList;
3356
- /** @deprecated */
3357
- addImport(bstrURL: string, lIndex?: number): number;
3358
- /** @deprecated */
3359
- addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;
3360
- addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
3361
- deleteRule(index?: number): void;
3253
+ addRule(selector?: string, style?: string, index?: number): number;
3254
+ deleteRule(index: number): void;
3362
3255
insertRule(rule: string, index?: number): number;
3363
- /** @deprecated */
3364
- removeImport(lIndex: number): void;
3365
- removeRule(lIndex: number): void;
3256
+ removeRule(index?: number): void;
3366
3257
}
3367
3258
3368
3259
declare var CSSStyleSheet: {
@@ -3438,7 +3329,7 @@ interface CanvasFillStrokeStyles {
3438
3329
fillStyle: string | CanvasGradient | CanvasPattern;
3439
3330
strokeStyle: string | CanvasGradient | CanvasPattern;
3440
3331
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
3441
- createPattern(image: CanvasImageSource, repetition: string): CanvasPattern | null;
3332
+ createPattern(image: CanvasImageSource, repetition: string | null ): CanvasPattern | null;
3442
3333
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
3443
3334
}
3444
3335
@@ -9905,7 +9796,7 @@ declare var KeyframeEffect: {
9905
9796
};
9906
9797
9907
9798
interface LinkStyle {
9908
- readonly sheet: StyleSheet | null;
9799
+ readonly sheet: CSSStyleSheet | null;
9909
9800
}
9910
9801
9911
9802
interface ListeningStateChangedEvent extends Event {
@@ -12026,7 +11917,7 @@ interface PositionError {
12026
11917
}
12027
11918
12028
11919
/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
12029
- interface ProcessingInstruction extends CharacterData {
11920
+ interface ProcessingInstruction extends CharacterData, LinkStyle {
12030
11921
readonly target: string;
12031
11922
}
12032
11923
@@ -13195,7 +13086,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa
13195
13086
}
13196
13087
13197
13088
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
13198
- interface SVGElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement, SVGElementInstance {
13089
+ interface SVGElement extends Element, DocumentAndElementEventHandlers, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers , GlobalEventHandlers, HTMLOrSVGElement, SVGElementInstance {
13199
13090
/** @deprecated */
13200
13091
readonly className: any;
13201
13092
readonly ownerSVGElement: SVGSVGElement | null;
@@ -15595,8 +15486,8 @@ interface StyleSheet {
15595
15486
disabled: boolean;
15596
15487
readonly href: string | null;
15597
15488
readonly media: MediaList;
15598
- readonly ownerNode: Node ;
15599
- readonly parentStyleSheet: StyleSheet | null;
15489
+ readonly ownerNode: Element | ProcessingInstruction | null ;
15490
+ readonly parentStyleSheet: CSSStyleSheet | null;
15600
15491
readonly title: string | null;
15601
15492
readonly type: string;
15602
15493
}
@@ -15609,8 +15500,8 @@ declare var StyleSheet: {
15609
15500
/** A list of StyleSheet. */
15610
15501
interface StyleSheetList {
15611
15502
readonly length: number;
15612
- item(index: number): StyleSheet | null;
15613
- [index: number]: StyleSheet ;
15503
+ item(index: number): CSSStyleSheet | null;
15504
+ [index: number]: CSSStyleSheet ;
15614
15505
}
15615
15506
15616
15507
declare var StyleSheetList: {
@@ -19150,6 +19041,13 @@ declare var webkitRTCPeerConnection: {
19150
19041
19151
19042
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
19152
19043
19044
+ /** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
19045
+ declare namespace CSS {
19046
+ function escape(ident: string): string;
19047
+ function supports(property: string, value: string): boolean;
19048
+ function supports(conditionText: string): boolean;
19049
+ }
19050
+
19153
19051
declare namespace WebAssembly {
19154
19052
interface CompileError {
19155
19053
}
0 commit comments