Update DOM (#33627)

* Update DOM

* Update baselines
This commit is contained in:
Nathan Shively-Sanders 2019-09-26 17:20:05 -07:00 committed by GitHub
parent b4941f6777
commit e72937deff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 255 additions and 204 deletions

View file

@ -2730,7 +2730,7 @@ interface CSSStyleDeclaration {
alignContent: string;
alignItems: string;
alignSelf: string;
alignmentBaseline: string | null;
alignmentBaseline: string;
animation: string;
animationDelay: string;
animationDirection: string;
@ -2740,65 +2740,83 @@ interface CSSStyleDeclaration {
animationName: string;
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;
baselineShift: string | null;
border: string | null;
borderBottom: string | null;
borderBottomColor: string | null;
borderBottomLeftRadius: string | null;
borderBottomRightRadius: string | null;
borderBottomStyle: string | null;
borderBottomWidth: string | null;
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;
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;
bottom: string | null;
boxShadow: string | null;
backfaceVisibility: string;
background: string;
backgroundAttachment: string;
backgroundClip: string;
backgroundColor: string;
backgroundImage: string;
backgroundOrigin: string;
backgroundPosition: string;
backgroundPositionX: string;
backgroundPositionY: string;
backgroundRepeat: string;
backgroundSize: string;
baselineShift: string;
blockSize: string;
border: string;
borderBlockEnd: string;
borderBlockEndColor: string;
borderBlockEndStyle: string;
borderBlockEndWidth: string;
borderBlockStart: string;
borderBlockStartColor: string;
borderBlockStartStyle: string;
borderBlockStartWidth: string;
borderBottom: string;
borderBottomColor: string;
borderBottomLeftRadius: string;
borderBottomRightRadius: string;
borderBottomStyle: string;
borderBottomWidth: string;
borderCollapse: string;
borderColor: string;
borderImage: string;
borderImageOutset: string;
borderImageRepeat: string;
borderImageSlice: string;
borderImageSource: string;
borderImageWidth: string;
borderInlineEnd: string;
borderInlineEndColor: string;
borderInlineEndStyle: string;
borderInlineEndWidth: string;
borderInlineStart: string;
borderInlineStartColor: string;
borderInlineStartStyle: string;
borderInlineStartWidth: string;
borderLeft: string;
borderLeftColor: string;
borderLeftStyle: string;
borderLeftWidth: string;
borderRadius: string;
borderRight: string;
borderRightColor: string;
borderRightStyle: string;
borderRightWidth: string;
borderSpacing: string;
borderStyle: string;
borderTop: string;
borderTopColor: string;
borderTopLeftRadius: string;
borderTopRightRadius: string;
borderTopStyle: string;
borderTopWidth: string;
borderWidth: string;
bottom: string;
boxShadow: string;
boxSizing: string;
breakAfter: string | null;
breakBefore: string | null;
breakInside: string | null;
captionSide: string | null;
breakAfter: string;
breakBefore: string;
breakInside: string;
captionSide: string;
caretColor: string;
clear: string | null;
clear: string;
clip: string;
clipPath: string;
clipRule: string;
color: string | null;
colorInterpolation: string;
colorInterpolationFilters: string;
columnCount: string;
columnFill: string;
@ -2810,28 +2828,29 @@ interface CSSStyleDeclaration {
columnSpan: string;
columnWidth: string;
columns: string;
content: string | null;
counterIncrement: string | null;
counterReset: string | null;
content: string;
counterIncrement: string;
counterReset: string;
cssFloat: string | null;
cssText: string;
cursor: string;
direction: string;
display: string | null;
dominantBaseline: string | null;
emptyCells: string | null;
display: string;
dominantBaseline: string;
emptyCells: string;
enableBackground: string | null;
fill: string | null;
fillOpacity: string | null;
fillRule: string | null;
fill: string;
fillOpacity: string;
fillRule: string;
filter: string;
flex: string | null;
flexBasis: string | null;
flexDirection: string | null;
flexFlow: string | null;
flexGrow: string | null;
flexShrink: string | null;
flexWrap: string | null;
flex: string;
flexBasis: string;
flexDirection: string;
flexFlow: string;
flexGrow: string;
flexShrink: string;
flexWrap: string;
float: string;
floodColor: string;
floodOpacity: string;
font: string;
@ -2853,29 +2872,30 @@ interface CSSStyleDeclaration {
gap: string;
glyphOrientationHorizontal: string | null;
glyphOrientationVertical: string;
grid: string | null;
gridArea: string | null;
gridAutoColumns: string | null;
gridAutoFlow: string | null;
gridAutoRows: string | null;
gridColumn: string | null;
gridColumnEnd: string | null;
grid: string;
gridArea: string;
gridAutoColumns: string;
gridAutoFlow: string;
gridAutoRows: string;
gridColumn: string;
gridColumnEnd: string;
gridColumnGap: string;
gridColumnStart: string | null;
gridColumnStart: string;
gridGap: string;
gridRow: string | null;
gridRowEnd: string | null;
gridRow: string;
gridRowEnd: string;
gridRowGap: string;
gridRowStart: string | null;
gridTemplate: string | null;
gridTemplateAreas: string | null;
gridTemplateColumns: string | null;
gridTemplateRows: string | null;
height: string | null;
gridRowStart: string;
gridTemplate: string;
gridTemplateAreas: string;
gridTemplateColumns: string;
gridTemplateRows: string;
height: string;
hyphens: string;
imageOrientation: string;
imageRendering: string;
imeMode: string | null;
inlineSize: string;
justifyContent: string;
justifyItems: string;
justifySelf: string;
@ -2885,25 +2905,29 @@ interface CSSStyleDeclaration {
layoutGridLine: string | null;
layoutGridMode: string | null;
layoutGridType: string | null;
left: string | null;
left: string;
readonly length: number;
letterSpacing: string;
lightingColor: string;
lineBreak: string;
lineHeight: string | null;
listStyle: string | null;
listStyleImage: string | null;
listStylePosition: string | null;
listStyleType: string | null;
margin: string | null;
marginBottom: string | null;
marginLeft: string | null;
marginRight: string | null;
marginTop: string | null;
marker: string | null;
markerEnd: string | null;
markerMid: string | null;
markerStart: string | null;
lineHeight: string;
listStyle: string;
listStyleImage: string;
listStylePosition: string;
listStyleType: string;
margin: string;
marginBlockEnd: string;
marginBlockStart: string;
marginBottom: string;
marginInlineEnd: string;
marginInlineStart: string;
marginLeft: string;
marginRight: string;
marginTop: string;
marker: string;
markerEnd: string;
markerMid: string;
markerStart: string;
mask: string;
maskComposite: string;
maskImage: string;
@ -2911,10 +2935,14 @@ interface CSSStyleDeclaration {
maskRepeat: string;
maskSize: string;
maskType: string;
maxHeight: string | null;
maxWidth: string | null;
minHeight: string | null;
minWidth: string | null;
maxBlockSize: string;
maxHeight: string;
maxInlineSize: string;
maxWidth: string;
minBlockSize: string;
minHeight: string;
minInlineSize: string;
minWidth: string;
msContentZoomChaining: string | null;
msContentZoomLimit: string | null;
msContentZoomLimitMax: any;
@ -2965,8 +2993,8 @@ interface CSSStyleDeclaration {
objectFit: string;
objectPosition: string;
opacity: string | null;
order: string | null;
orphans: string | null;
order: string;
orphans: string;
outline: string;
outlineColor: string;
outlineOffset: string;
@ -2977,45 +3005,51 @@ interface CSSStyleDeclaration {
overflowWrap: string;
overflowX: string;
overflowY: string;
padding: string | null;
paddingBottom: string | null;
paddingLeft: string | null;
paddingRight: string | null;
paddingTop: string | null;
pageBreakAfter: string | null;
pageBreakBefore: string | null;
pageBreakInside: string | null;
padding: string;
paddingBlockEnd: string;
paddingBlockStart: string;
paddingBottom: string;
paddingInlineEnd: string;
paddingInlineStart: string;
paddingLeft: string;
paddingRight: string;
paddingTop: string;
pageBreakAfter: string;
pageBreakBefore: string;
pageBreakInside: string;
paintOrder: string;
readonly parentRule: CSSRule;
penAction: string | null;
perspective: string | null;
perspectiveOrigin: string | null;
perspective: string;
perspectiveOrigin: string;
placeContent: string;
placeItems: string;
placeSelf: string;
pointerEvents: string | null;
position: string | null;
quotes: string | null;
position: string;
quotes: string;
resize: string;
right: string | null;
rotate: string | null;
right: string;
rotate: string;
rowGap: string;
rubyAlign: string | null;
rubyOverhang: string | null;
rubyPosition: string | null;
scale: string | null;
scale: string;
scrollBehavior: string;
shapeRendering: string;
stopColor: string | null;
stopOpacity: string | null;
stroke: string | null;
strokeDasharray: string | null;
strokeDashoffset: string | null;
strokeLinecap: string | null;
strokeLinejoin: string | null;
strokeMiterlimit: string | null;
strokeOpacity: string | null;
strokeWidth: string | null;
stroke: string;
strokeDasharray: string;
strokeDashoffset: string;
strokeLinecap: string;
strokeLinejoin: string;
strokeMiterlimit: string;
strokeOpacity: string;
strokeWidth: string;
tabSize: string;
tableLayout: string | null;
tableLayout: string;
textAlign: string;
textAlignLast: string;
textAnchor: string | null;
@ -3034,25 +3068,26 @@ interface CSSStyleDeclaration {
textKashidaSpace: string | null;
textOrientation: string;
textOverflow: string;
textRendering: string;
textShadow: string;
textTransform: string;
textUnderlinePosition: string;
top: string | null;
top: string;
touchAction: string;
transform: string;
transformBox: string;
transformOrigin: string;
transformStyle: string | null;
transformStyle: string;
transition: string;
transitionDelay: string;
transitionDuration: string;
transitionProperty: string;
transitionTimingFunction: string;
translate: string | null;
translate: string;
unicodeBidi: string;
userSelect: string;
verticalAlign: string | null;
visibility: string | null;
verticalAlign: string;
visibility: string;
/** @deprecated */
webkitAlignContent: string;
/** @deprecated */
@ -3208,14 +3243,14 @@ interface CSSStyleDeclaration {
webkitUserSelect: string | null;
webkitWritingMode: string | null;
whiteSpace: string;
widows: string | null;
width: string | null;
widows: string;
width: string;
willChange: string;
wordBreak: string;
wordSpacing: string;
wordWrap: string;
writingMode: string;
zIndex: string | null;
zIndex: string;
zoom: string | null;
getPropertyPriority(propertyName: string): string;
getPropertyValue(propertyName: string): string;
@ -3425,7 +3460,7 @@ interface CanvasRect {
}
/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */
interface CanvasRenderingContext2D extends CanvasState, CanvasTransform, CanvasCompositing, CanvasImageSmoothing, CanvasFillStrokeStyles, CanvasShadowStyles, CanvasFilters, CanvasRect, CanvasDrawPath, CanvasUserInterface, CanvasText, CanvasDrawImage, CanvasImageData, CanvasPathDrawingStyles, CanvasTextDrawingStyles, CanvasPath {
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
readonly canvas: HTMLCanvasElement;
}
@ -3507,7 +3542,7 @@ declare var ChannelSplitterNode: {
};
/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */
interface CharacterData extends Node, NonDocumentTypeChildNode, ChildNode {
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
data: string;
readonly length: number;
appendData(data: string): void;
@ -4449,7 +4484,7 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndEleme
}
/** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
interface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, ParentNode, XPathEvaluatorBase, GlobalEventHandlers, DocumentAndElementEventHandlers {
interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/**
* Sets or gets the URL for the current document.
*/
@ -5140,7 +5175,7 @@ interface ElementEventMap {
}
/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */
interface Element extends Node, ParentNode, NonDocumentTypeChildNode, ChildNode, Slotable, InnerHTML, Animatable {
interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slotable {
readonly assignedSlot: HTMLSlotElement | null;
readonly attributes: NamedNodeMap;
/**
@ -5214,8 +5249,8 @@ interface Element extends Node, ParentNode, NonDocumentTypeChildNode, ChildNode,
getAttributeNames(): string[];
getAttributeNode(name: string): Attr | null;
getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null;
getBoundingClientRect(): ClientRect | DOMRect;
getClientRects(): ClientRectList | DOMRectList;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
/**
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
*/
@ -6635,7 +6670,7 @@ interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventM
}
/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
interface HTMLElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, ElementContentEditable, HTMLOrSVGElement, ElementCSSInlineStyle {
interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
accessKey: string;
readonly accessKeyLabel: string;
autocapitalize: string;
@ -9772,11 +9807,11 @@ declare var IntersectionObserver: {
/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */
interface IntersectionObserverEntry {
readonly boundingClientRect: ClientRect | DOMRect;
readonly boundingClientRect: DOMRectReadOnly;
readonly intersectionRatio: number;
readonly intersectionRect: ClientRect | DOMRect;
readonly intersectionRect: DOMRectReadOnly;
readonly isIntersecting: boolean;
readonly rootBounds: ClientRect | DOMRect | null;
readonly rootBounds: DOMRectReadOnly | null;
readonly target: Element;
readonly time: number;
}
@ -10817,7 +10852,7 @@ declare var NavigationPreloadManager: {
};
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
interface Navigator extends NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, NavigatorConcurrentHardware, NavigatorStorage, NavigatorAutomationInformation, MSFileSaver, MSNavigatorDoNotTrack, NavigatorBeacon {
interface Navigator extends MSFileSaver, MSNavigatorDoNotTrack, NavigatorAutomationInformation, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
readonly activeVRDisplays: ReadonlyArray<VRDisplay>;
readonly clipboard: Clipboard;
readonly credentials: CredentialsContainer;
@ -11356,7 +11391,7 @@ declare var OffscreenCanvas: {
new(width: number, height: number): OffscreenCanvas;
};
interface OffscreenCanvasRenderingContext2D extends CanvasState, CanvasTransform, CanvasCompositing, CanvasImageSmoothing, CanvasFillStrokeStyles, CanvasShadowStyles, CanvasFilters, CanvasRect, CanvasDrawPath, CanvasText, CanvasDrawImage, CanvasImageData, CanvasPathDrawingStyles, CanvasTextDrawingStyles, CanvasPath {
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
commit(): void;
}
@ -12588,8 +12623,8 @@ interface Range extends AbstractRange {
deleteContents(): void;
detach(): void;
extractContents(): DocumentFragment;
getBoundingClientRect(): ClientRect | DOMRect;
getClientRects(): ClientRectList | DOMRectList;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
insertNode(node: Node): void;
/**
* Returns whether range intersects node.
@ -13113,7 +13148,7 @@ interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMa
}
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
interface SVGElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, SVGElementInstance, HTMLOrSVGElement, ElementCSSInlineStyle {
interface SVGElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement, SVGElementInstance {
/** @deprecated */
readonly className: any;
readonly ownerSVGElement: SVGSVGElement | null;
@ -14323,7 +14358,7 @@ declare var SVGPathSegMovetoRel: {
};
/** Corresponds to the <pattern> element. */
interface SVGPatternElement extends SVGElement, SVGTests, SVGFitToViewBox, SVGURIReference {
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGTests, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly patternContentUnits: SVGAnimatedEnumeration;
readonly patternTransform: SVGAnimatedTransformList;
@ -15624,7 +15659,7 @@ interface TextDecoderCommon {
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends TextDecoderCommon, GenericTransformStream {
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
}
declare var TextDecoderStream: {
@ -15656,7 +15691,7 @@ interface TextEncoderCommon {
readonly encoding: string;
}
interface TextEncoderStream extends TextEncoderCommon, GenericTransformStream {
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
}
declare var TextEncoderStream: {
@ -16424,7 +16459,7 @@ declare var WebAuthnAssertion: {
new(): WebAuthnAssertion;
};
interface WebGL2RenderingContext extends WebGLRenderingContextBase, WebGL2RenderingContextBase, WebGL2RenderingContextOverloads {
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
@ -18477,7 +18512,7 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
}
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
interface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64, AnimationFrameProvider, WindowOrWorkerGlobalScope, WindowEventHandlers {
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, IDBEnvironment, WindowBase64, WindowConsole, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage, WindowTimers {
readonly applicationCache: ApplicationCache;
readonly caches: CacheStorage;
readonly clientInformation: Navigator;
@ -19039,11 +19074,11 @@ declare namespace WebAssembly {
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, value?: any): Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: any;
readonly exports: Exports;
}
var Instance: {
@ -19075,9 +19110,9 @@ declare namespace WebAssembly {
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(module: Module, sectionName: string): ArrayBuffer[];
exports(module: Module): ModuleExportDescriptor[];
imports(module: Module): ModuleImportDescriptor[];
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError {
@ -19102,7 +19137,7 @@ declare namespace WebAssembly {
interface GlobalDescriptor {
mutable?: boolean;
value: string;
value: ValueType;
}
interface MemoryDescriptor {
@ -19134,9 +19169,17 @@ declare namespace WebAssembly {
type ImportExportKind = "function" | "table" | "memory" | "global";
type TableKind = "anyfunc";
type ValueType = "i32" | "i64" | "f32" | "f64";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type ModuleImports = Record<string, ImportValue>;
type Imports = Record<string, ModuleImports>;
function compile(bytes: BufferSource): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: any): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: any): Promise<Instance>;
function compileStreaming(source: Response | Promise<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(response: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
@ -20096,7 +20139,7 @@ type Transport = "usb" | "nfc" | "ble";
type UserVerificationRequirement = "required" | "preferred" | "discouraged";
type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
type VideoFacingModeEnum = "user" | "environment" | "left" | "right";
type VisibilityState = "hidden" | "visible" | "prerender";
type VisibilityState = "hidden" | "visible";
type WebGLPowerPreference = "default" | "low-power" | "high-performance";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";

View file

@ -273,37 +273,37 @@ interface WebAuthentication {
}
interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
drawBuffers(buffers: Iterable<GLenum>): void;
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
drawBuffers(buffers: Iterable<GLenum>): void;
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
}
interface WebGL2RenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
@ -319,12 +319,12 @@ interface WebGLRenderingContextBase {
interface WebGLRenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;

View file

@ -2452,7 +2452,7 @@ declare var OffscreenCanvas: {
new(width: number, height: number): OffscreenCanvas;
};
interface OffscreenCanvasRenderingContext2D extends CanvasState, CanvasTransform, CanvasCompositing, CanvasImageSmoothing, CanvasFillStrokeStyles, CanvasShadowStyles, CanvasFilters, CanvasRect, CanvasDrawPath, CanvasText, CanvasDrawImage, CanvasImageData, CanvasPathDrawingStyles, CanvasTextDrawingStyles, CanvasPath {
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
commit(): void;
}
@ -3082,7 +3082,7 @@ interface TextDecoderCommon {
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends TextDecoderCommon, GenericTransformStream {
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
}
declare var TextDecoderStream: {
@ -3114,7 +3114,7 @@ interface TextEncoderCommon {
readonly encoding: string;
}
interface TextEncoderStream extends TextEncoderCommon, GenericTransformStream {
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
}
declare var TextEncoderStream: {
@ -3365,7 +3365,7 @@ interface WEBGL_lose_context {
restoreContext(): void;
}
interface WebGL2RenderingContext extends WebGLRenderingContextBase, WebGL2RenderingContextBase, WebGL2RenderingContextOverloads {
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
@ -5355,7 +5355,7 @@ interface WorkerGlobalScopeEventMap {
}
/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
interface WorkerGlobalScope extends EventTarget, WorkerUtils, WindowConsole, WindowOrWorkerGlobalScope {
interface WorkerGlobalScope extends EventTarget, WindowConsole, WindowOrWorkerGlobalScope, WorkerUtils {
readonly caches: CacheStorage;
readonly isSecureContext: boolean;
readonly location: WorkerLocation;
@ -5394,7 +5394,7 @@ declare var WorkerLocation: {
};
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
interface WorkerNavigator extends NavigatorID, NavigatorOnLine, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorStorage {
interface WorkerNavigator extends NavigatorBeacon, NavigatorConcurrentHardware, NavigatorID, NavigatorOnLine, NavigatorStorage {
readonly permissions: Permissions;
readonly serviceWorker: ServiceWorkerContainer;
}
@ -5600,11 +5600,11 @@ declare namespace WebAssembly {
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, value?: any): Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: any;
readonly exports: Exports;
}
var Instance: {
@ -5628,9 +5628,9 @@ declare namespace WebAssembly {
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(module: Module, sectionName: string): ArrayBuffer[];
exports(module: Module): ModuleExportDescriptor[];
imports(module: Module): ModuleImportDescriptor[];
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface Table {
@ -5647,7 +5647,7 @@ declare namespace WebAssembly {
interface GlobalDescriptor {
mutable?: boolean;
value: string;
value: ValueType;
}
interface MemoryDescriptor {
@ -5679,9 +5679,17 @@ declare namespace WebAssembly {
type ImportExportKind = "function" | "table" | "memory" | "global";
type TableKind = "anyfunc";
type ValueType = "i32" | "i64" | "f32" | "f64";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type ModuleImports = Record<string, ImportValue>;
type Imports = Record<string, ModuleImports>;
function compile(bytes: BufferSource): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: any): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: any): Promise<Instance>;
function compileStreaming(source: Response | Promise<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(response: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
@ -5855,7 +5863,7 @@ type RequestRedirect = "follow" | "error" | "manual";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant";
type ServiceWorkerUpdateViaCache = "imports" | "all" | "none";
type VisibilityState = "hidden" | "visible" | "prerender";
type VisibilityState = "hidden" | "visible";
type WebGLPowerPreference = "default" | "low-power" | "high-performance";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";

View file

@ -10,7 +10,7 @@ tests/cases/compiler/intersectionsOfLargeUnions2.ts(31,15): error TS2536: Type '
interface ElementTagNameMap {
~~~~~~~~~~~~~~~~~
!!! error TS2300: Duplicate identifier 'ElementTagNameMap'.
!!! related TS6203 /.ts/lib.dom.d.ts:19479:6: 'ElementTagNameMap' was also declared here.
!!! related TS6203 /.ts/lib.dom.d.ts:19522:6: 'ElementTagNameMap' was also declared here.
[index: number]: HTMLElement
}

File diff suppressed because one or more lines are too long