HTMLImageElement.idl 917 B

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