Skip to content

Inconsistents with ClientRect definition #11085

Closed
@HolgerJeromin

Description

@HolgerJeromin

TypeScript Version: 2.0.3

Typescript 2.0.3 has a lot of readonly stuff in lib.d.ts.

I am surprised that only height and width is readonly in ClientRect definition.

interface ClientRect {
    bottom: number;
    readonly height: number;
    left: number;
    right: number;
    top: number;
    readonly width: number;
}

Is this an error?
Mozillas response of getBoundingClientRect is the other way round:
all but height/width readonly (if i can trust FireBug) and has added x, y

Sidenote: ClientRect has been renamed to DOMRect

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions