You can create an <picture> object using the document.create_element method.
let picture = document.create_element("picture")
.unwrap()
.dyn_into::<web_sys::HtmlPictureElement>()
.unwrap();
You can access an <picture> object using the document.get_element_by_id method.
let button = document.get_element_by_id("my-picture")
.unwrap()
.dyn_into::<web_sys::HtmlPictureElement>()
.unwrap();
width - The width of the picture.
width set_widthheight - The height of the picture.
height set_height
features = [
'HtmlPictureElement',
]