HTMLImageElement.idl 955 B

123456789101112131415161718192021222324252627
  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. [Reflect] attribute DOMString src;
  7. [Reflect] attribute DOMString alt;
  8. [Reflect] attribute DOMString srcset;
  9. [Reflect] attribute DOMString sizes;
  10. [Reflect=usemap] attribute DOMString useMap;
  11. [Reflect=ismap] attribute boolean isMap;
  12. [Reflect] attribute DOMString name;
  13. [Reflect] attribute DOMString align;
  14. [LegacyNullToEmptyString, Reflect] attribute DOMString border;
  15. [CEReactions] attribute unsigned long width;
  16. [CEReactions] attribute unsigned long height;
  17. readonly attribute unsigned long naturalWidth;
  18. readonly attribute unsigned long naturalHeight;
  19. readonly attribute boolean complete;
  20. };