Sfoglia il codice sorgente

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 anno fa
parent
commit
6b7545f60a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      packages/html/src/elements.rs

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

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