Skip to content

Commit b707c4b

Browse files
Shogo Sensuisaschanaz
andauthored
Improve loading attribute for HTMLImageElement (#1220)
Co-authored-by: saschanaz <[email protected]>
1 parent 84c4c85 commit b707c4b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6672,7 +6672,8 @@ interface HTMLImageElement extends HTMLElement {
66726672
hspace: number;
66736673
/** Sets or retrieves whether the image is a server-side image map. */
66746674
isMap: boolean;
6675-
loading: string;
6675+
/** Sets or retrieves the policy for loading image elements that are outside the viewport. */
6676+
loading: "eager" | "lazy";
66766677
/**
66776678
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
66786679
* @deprecated

inputfiles/addedTypes.jsonc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
"hue",
310310
"saturation",
311311
"color",
312-
"luminosity"
312+
"luminosity"
313313
]
314314
}
315315
}
@@ -354,6 +354,9 @@
354354
"decoding": {
355355
"name": "decoding",
356356
"overrideType": "\"async\" | \"sync\" | \"auto\""
357+
},
358+
"loading": {
359+
"overrideType": "\"eager\" | \"lazy\""
357360
}
358361
}
359362
}

inputfiles/comments.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@
553553
"hspace": {
554554
"comment": "Sets or retrieves the width of the border to draw around the object."
555555
},
556+
"loading": {
557+
"comment": "Sets or retrieves the policy for loading image elements that are outside the viewport."
558+
},
556559
"longDesc": {
557560
"comment": "Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object."
558561
},

0 commit comments

Comments
 (0)