summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLImageElement.idl
blob: e33167770e09b19bc09f996c3149909eefee7347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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;

};