Browse Source

Add loading attribute to img element (#1699)

Useful for lazy loading: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#loading
Alex Parrill 1 year ago
parent
commit
6b7545f60a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/html/src/elements.rs

+ 1 - 0
packages/html/src/elements.rs

@@ -827,6 +827,7 @@ builder_constructors! {
         decoding: ImageDecoding DEFAULT,
         decoding: ImageDecoding DEFAULT,
         height: usize DEFAULT,
         height: usize DEFAULT,
         ismap: Bool DEFAULT,
         ismap: Bool DEFAULT,
+        loading: String DEFAULT,
         src: Uri DEFAULT,
         src: Uri DEFAULT,
         srcset: String DEFAULT, // FIXME this is much more complicated
         srcset: String DEFAULT, // FIXME this is much more complicated
         usemap: String DEFAULT, // FIXME should be a fragment starting with '#'
         usemap: String DEFAULT, // FIXME should be a fragment starting with '#'