{{APIRef}}{{SeeCompatTable}}
The HTMLPictureElement
interface represents a {{HTMLElement("picture")}} HTML element. It doesn't implement specific properties or methods.
Properties
No specific property, but inherits properties from its parent, {{domxref("HTMLElement")}}.
Methods
No specific method, but inherits methods from its parent, {{domxref("HTMLElement")}}.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('HTML WHATWG', "edits.html#the-picture-element", "HTMLPictureElement")}} | {{Spec2('HTML WHATWG')}} | Initial definition. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatGeckoDesktop(33)}} behind the dom.image.picture.enabled preference (off by default) |
{{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatGeckoMobile(33)}} behind the dom.image.picture.enabled preference (off by default) |
{{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
See also
- The {{HTMLElement("picture")}} HTML element that implements it.
- The {{domxref("HTMLImageElement")}}, {{domxref("HTMLSourceElement")}} often used in conjunction with a {{HTMLElement("picture")}} element.