|
@@ -2,6 +2,14 @@
|
|
#import <HTML/HTMLElement.idl>
|
|
#import <HTML/HTMLElement.idl>
|
|
#import <HTML/Scripting/Fetching.idl>
|
|
#import <HTML/Scripting/Fetching.idl>
|
|
|
|
|
|
|
|
+// https://html.spec.whatwg.org/multipage/images.html#image-decoding-hint
|
|
|
|
+[MissingValueDefault=auto, InvalidValueDefault=auto]
|
|
|
|
+enum Decoding {
|
|
|
|
+ "sync",
|
|
|
|
+ "async",
|
|
|
|
+ "auto"
|
|
|
|
+};
|
|
|
|
+
|
|
// https://html.spec.whatwg.org/multipage/embedded-content.html#htmlimageelement
|
|
// https://html.spec.whatwg.org/multipage/embedded-content.html#htmlimageelement
|
|
[Exposed=Window, LegacyFactoryFunction=Image(optional unsigned long width, optional unsigned long height)]
|
|
[Exposed=Window, LegacyFactoryFunction=Image(optional unsigned long width, optional unsigned long height)]
|
|
interface HTMLImageElement : HTMLElement {
|
|
interface HTMLImageElement : HTMLElement {
|
|
@@ -22,7 +30,7 @@ interface HTMLImageElement : HTMLElement {
|
|
readonly attribute boolean complete;
|
|
readonly attribute boolean complete;
|
|
readonly attribute USVString currentSrc;
|
|
readonly attribute USVString currentSrc;
|
|
[CEReactions, Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy;
|
|
[CEReactions, Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy;
|
|
- [CEReactions] attribute DOMString decoding;
|
|
|
|
|
|
+ [CEReactions, Enumerated=Decoding, Reflect] attribute DOMString decoding;
|
|
[CEReactions, Enumerated=LazyLoadingAttribute, Reflect] attribute DOMString loading;
|
|
[CEReactions, Enumerated=LazyLoadingAttribute, Reflect] attribute DOMString loading;
|
|
[CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority;
|
|
[CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority;
|
|
|
|
|