This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The HTMLPictureElement interface represents a <picture> HTML element. It doesn't implement specific properties or methods.
No specific property, but inherits properties from its parent, HTMLElement.
No specific method, but inherits methods from its parent, HTMLElement.
| Specification | Status | Comment |
|---|---|---|
| HTML Living Standard The definition of 'HTMLPictureElement' in that specification. | Living Standard | Initial definition |
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|---|
| Basic support | 38 | (Yes) | 33 (33)[1] | ? | ? | ? |
| Feature | Android | Edge | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | ? | (Yes) | 33.0 (33)[1] | ? | ? | ? |
[1] Gecko implements this behind the dom.image.picture.enabled preference, defaulting to false.
<picture> HTML element that implements it.HTMLImageElement, HTMLSourceElement often used in conjunction with a <picture> element.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLPictureElement