HTMLImageElement.idl 1.7 KB

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