#import <HTML/HTMLElement.idl>

// https://html.spec.whatwg.org/multipage/embedded-content.html#htmlimageelement
[Exposed=Window, LegacyFactoryFunction=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {

    [Reflect] attribute DOMString src;
    [Reflect] attribute DOMString alt;
    [Reflect] attribute DOMString srcset;
    [Reflect] attribute DOMString sizes;
    [Reflect=usemap] attribute DOMString useMap;
    [Reflect=ismap] attribute boolean isMap;

    [Reflect] attribute DOMString name;
    [Reflect] attribute DOMString align;
    [LegacyNullToEmptyString, Reflect] attribute DOMString border;

    [CEReactions] attribute unsigned long width;
    [CEReactions] attribute unsigned long height;
    readonly attribute unsigned long naturalWidth;
    readonly attribute unsigned long naturalHeight;

    readonly attribute boolean complete;

};
