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