2022-02-15 16:10:51 -03:00
|
|
|
#import <HTML/HTMLElement.idl>
|
|
|
|
|
|
2022-10-07 19:45:09 -03:00
|
|
|
// https://html.spec.whatwg.org/multipage/embedded-content.html#htmlimageelement
|
2023-09-02 10:09:33 -03:00
|
|
|
[Exposed=Window, LegacyFactoryFunction=Image(optional unsigned long width, optional unsigned long height)]
|
2020-06-21 10:26:09 -03:00
|
|
|
interface HTMLImageElement : HTMLElement {
|
|
|
|
|
|
2023-03-23 04:48:52 -03:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
|
2023-02-28 22:45:18 -03:00
|
|
|
[CEReactions, Reflect] attribute DOMString alt;
|
2023-10-25 12:26:24 -03:00
|
|
|
[CEReactions, Reflect] attribute DOMString src;
|
2023-02-28 22:45:18 -03:00
|
|
|
[CEReactions, Reflect] attribute DOMString srcset;
|
|
|
|
|
[CEReactions, Reflect] attribute DOMString sizes;
|
2023-10-25 12:26:24 -03:00
|
|
|
// FIXME: [CEReactions] attribute DOMString? crossOrigin;
|
2023-02-28 22:45:18 -03:00
|
|
|
[CEReactions, Reflect=usemap] attribute DOMString useMap;
|
|
|
|
|
[CEReactions, Reflect=ismap] attribute boolean isMap;
|
2022-02-25 14:42:37 -03:00
|
|
|
[CEReactions] attribute unsigned long width;
|
|
|
|
|
[CEReactions] attribute unsigned long height;
|
2022-04-12 13:20:43 -03:00
|
|
|
readonly attribute unsigned long naturalWidth;
|
|
|
|
|
readonly attribute unsigned long naturalHeight;
|
2022-10-03 09:54:27 -03:00
|
|
|
readonly attribute boolean complete;
|
2023-10-25 12:26:24 -03:00
|
|
|
// FIXME: readonly attribute USVString currentSrc;
|
|
|
|
|
// FIXME: [CEReactions] attribute DOMString referrerPolicy;
|
|
|
|
|
// FIXME: [CEReactions] attribute DOMString decoding;
|
|
|
|
|
// FIXME: [CEReactions] attribute DOMString loading;
|
|
|
|
|
// FIXME: [CEReactions] attribute DOMString fetchPriority;
|
|
|
|
|
|
|
|
|
|
// FIXME: Promise<undefined> decode();
|
|
|
|
|
|
|
|
|
|
// Obsolete
|
|
|
|
|
[CEReactions, Reflect] attribute DOMString name;
|
|
|
|
|
// FIXME: [CEReactions] attribute USVString lowsrc;
|
|
|
|
|
[CEReactions, Reflect] attribute DOMString align;
|
|
|
|
|
// FIXME: [CEReactions] attribute unsigned long hspace;
|
|
|
|
|
// FIXME: [CEReactions] attribute unsigned long vspace;
|
|
|
|
|
// FIXME: [CEReactions] attribute USVString longDesc;
|
|
|
|
|
|
|
|
|
|
[CEReactions, LegacyNullToEmptyString, Reflect] attribute DOMString border;
|
2022-10-03 09:54:27 -03:00
|
|
|
|
2020-12-09 18:26:42 -03:00
|
|
|
};
|