File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
dom/src/main/scala/org/scalajs/dom Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,23 @@ abstract class HTMLImageElement extends HTMLElement {
2525 /** Reflects the alt HTML attribute, indicating fallback context for the image. */
2626 var alt : String = js.native
2727
28+ /** Allows you to specify the layout width of the image for each of a list of media conditions. */
29+ var sizes : String = js.native
30+
2831 /** Reflects the src HTML attribute, containing the URL of the image. */
2932 var src : String = js.native
3033
34+ /** srcset is a string which identifies one or more image candidate strings, separated using commas (,) each
35+ * specifying image resources to use under given circumstances.
36+ *
37+ * Each image candidate string contains an image URL and an optional width or pixel density descriptor that indicates
38+ * the conditions under which that candidate should be used instead of the image specified by the src property.
39+ */
40+ var srcset : String = js.native
41+
42+ /** Indicates the URL of the image which is currently presented in the <img> element it represents. */
43+ def currentSrc : String = js.native
44+
3145 /** Reflects the usemap HTML attribute, containing a partial URL of a map element. */
3246 var useMap : String = js.native
3347
Original file line number Diff line number Diff line change 1+ package org .scalajs .dom
2+
3+ /** Image creates a new HTMLImageElement instance. It is functionally equivalent to document.createElement('img').
4+ *
5+ * @param width
6+ * The width of the image (i.e., the value for the width attribute).
7+ * @param height
8+ * The height of the image (i.e., the value for the height attribute).
9+ */
10+ class Image (width : Int , height : Int ) extends HTMLImageElement
You can’t perform that action at this time.
0 commit comments