Add loading attribute to img element (#1699)

Useful for lazy loading: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#loading
This commit is contained in:
Alex Parrill 2023-12-07 17:13:50 -05:00 committed by GitHub
parent 028ffad95a
commit 6b7545f60a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 '#'