HTMLImageElement.idl 1.0 KB

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. [CEReactions, Reflect] attribute DOMString src;
  7. [CEReactions, Reflect] attribute DOMString alt;
  8. [CEReactions, Reflect] attribute DOMString srcset;
  9. [CEReactions, Reflect] attribute DOMString sizes;
  10. [CEReactions, Reflect=usemap] attribute DOMString useMap;
  11. [CEReactions, Reflect=ismap] attribute boolean isMap;
  12. [CEReactions, Reflect] attribute DOMString name;
  13. [CEReactions, Reflect] attribute DOMString align;
  14. [CEReactions, 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. };