HTMLImageElement.idl 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #import <HTML/HTMLElement.idl>
  2. #import <HTML/Scripting/Fetching.idl>
  3. // https://html.spec.whatwg.org/multipage/embedded-content.html#htmlimageelement
  4. [Exposed=Window, LegacyFactoryFunction=Image(optional unsigned long width, optional unsigned long height)]
  5. interface HTMLImageElement : HTMLElement {
  6. [HTMLConstructor] constructor();
  7. [CEReactions, Reflect] attribute DOMString alt;
  8. [CEReactions, Reflect] attribute DOMString src;
  9. [CEReactions, Reflect] attribute DOMString srcset;
  10. [CEReactions, Reflect] attribute DOMString sizes;
  11. [FIXME, CEReactions] attribute DOMString? crossOrigin;
  12. [CEReactions, Reflect=usemap] attribute DOMString useMap;
  13. [CEReactions, Reflect=ismap] attribute boolean isMap;
  14. [CEReactions] attribute unsigned long width;
  15. [CEReactions] attribute unsigned long height;
  16. readonly attribute unsigned long naturalWidth;
  17. readonly attribute unsigned long naturalHeight;
  18. readonly attribute boolean complete;
  19. readonly attribute USVString currentSrc;
  20. [FIXME, CEReactions] attribute DOMString referrerPolicy;
  21. [FIXME, CEReactions] attribute DOMString decoding;
  22. [CEReactions, Enumerated=LazyLoadingAttribute, Reflect] attribute DOMString loading;
  23. [FIXME, CEReactions] attribute DOMString fetchPriority;
  24. [FIXME] Promise<undefined> decode();
  25. // Obsolete
  26. [CEReactions, Reflect] attribute DOMString name;
  27. [FIXME, CEReactions] attribute USVString lowsrc;
  28. [CEReactions, Reflect] attribute DOMString align;
  29. [CEReactions, Reflect] attribute unsigned long hspace;
  30. [CEReactions, Reflect] attribute unsigned long vspace;
  31. [FIXME, CEReactions] attribute USVString longDesc;
  32. [CEReactions, LegacyNullToEmptyString, Reflect] attribute DOMString border;
  33. };