{
 "caniuse": [
  "srcset"
 ],
 "compat_features": [
  "api.HTMLImageElement.sizes",
  "api.HTMLImageElement.srcset",
  "api.HTMLSourceElement.sizes",
  "api.HTMLSourceElement.srcset",
  "html.elements.img.sizes",
  "html.elements.img.srcset",
  "html.elements.source.sizes",
  "html.elements.source.srcset"
 ],
 "description": "The srcset and sizes attributes for <img> elements set a list of possible sources for the image and a corresponding list of size conditions for choosing a source, to show a responsive image that fits the size of the display.",
 "description_html": "The <code>srcset</code> and <code>sizes</code> attributes for <code>&#x3C;img></code> elements set a list of possible sources for the image and a corresponding list of size conditions for choosing a source, to show a responsive image that fits the size of the display.",
 "group": [
  "html"
 ],
 "kind": "feature",
 "name": "srcset and sizes",
 "spec": [
  "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-srcset"
 ],
 "status": {
  "baseline": "high",
  "baseline_high_date": "2019-09-27",
  "baseline_low_date": "2017-03-27",
  "by_compat_key": {
   "api.HTMLImageElement.sizes": {
    "baseline": "high",
    "baseline_high_date": "2018-09-21",
    "baseline_low_date": "2016-03-21",
    "support": {
     "chrome": "38",
     "chrome_android": "38",
     "edge": "13",
     "firefox": "38",
     "firefox_android": "38",
     "safari": "9.1",
     "safari_ios": "9.3"
    }
   },
   "api.HTMLImageElement.srcset": {
    "baseline": "high",
    "baseline_high_date": "2018-01-29",
    "baseline_low_date": "2015-07-29",
    "support": {
     "chrome": "34",
     "chrome_android": "34",
     "edge": "12",
     "firefox": "38",
     "firefox_android": "38",
     "safari": "8",
     "safari_ios": "8"
    }
   },
   "api.HTMLSourceElement.sizes": {
    "baseline": "high",
    "baseline_high_date": "2019-09-27",
    "baseline_low_date": "2017-03-27",
    "support": {
     "chrome": "38",
     "chrome_android": "38",
     "edge": "13",
     "firefox": "38",
     "firefox_android": "38",
     "safari": "10.1",
     "safari_ios": "10.3"
    }
   },
   "api.HTMLSourceElement.srcset": {
    "baseline": "high",
    "baseline_high_date": "2019-09-27",
    "baseline_low_date": "2017-03-27",
    "support": {
     "chrome": "38",
     "chrome_android": "38",
     "edge": "13",
     "firefox": "38",
     "firefox_android": "38",
     "safari": "10.1",
     "safari_ios": "10.3"
    }
   },
   "html.elements.img.sizes": {
    "baseline": "high",
    "baseline_high_date": "2018-09-21",
    "baseline_low_date": "2016-03-21",
    "support": {
     "chrome": "38",
     "chrome_android": "38",
     "edge": "12",
     "firefox": "38",
     "firefox_android": "38",
     "safari": "9.1",
     "safari_ios": "9.3"
    }
   },
   "html.elements.img.srcset": {
    "baseline": "high",
    "baseline_high_date": "2018-01-29",
    "baseline_low_date": "2015-07-29",
    "support": {
     "chrome": "34",
     "chrome_android": "34",
     "edge": "12",
     "firefox": "38",
     "firefox_android": "38",
     "safari": "8",
     "safari_ios": "8"
    }
   },
   "html.elements.source.sizes": {
    "baseline": "high",
    "baseline_high_date": "2018-09-21",
    "baseline_low_date": "2016-03-21",
    "support": {
     "chrome": "34",
     "chrome_android": "34",
     "edge": "13",
     "firefox": "38",
     "firefox_android": "38",
     "safari": "9.1",
     "safari_ios": "9.3"
    }
   },
   "html.elements.source.srcset": {
    "baseline": "high",
    "baseline_high_date": "2018-09-21",
    "baseline_low_date": "2016-03-21",
    "support": {
     "chrome": "34",
     "chrome_android": "34",
     "edge": "13",
     "firefox": "38",
     "firefox_android": "38",
     "safari": "9.1",
     "safari_ios": "9.3"
    }
   }
  },
  "support": {
   "chrome": "38",
   "chrome_android": "38",
   "edge": "13",
   "firefox": "38",
   "firefox_android": "38",
   "safari": "10.1",
   "safari_ios": "10.3"
  }
 },
 "id": "srcset",
 "groups": [
  "html"
 ],
 "specs": [
  {
   "url": "https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-srcset",
   "seriesComposition": "full",
   "shortname": "html",
   "series": {
    "shortname": "html",
    "currentSpecification": "html",
    "title": "HTML",
    "shortTitle": "HTML",
    "nightlyUrl": "https://html.spec.whatwg.org/multipage/"
   },
   "nightly": {
    "url": "https://html.spec.whatwg.org/multipage/",
    "status": "Living Standard",
    "sourcePath": "source",
    "alternateUrls": [],
    "repository": "https://github.com/whatwg/html",
    "pages": [
     "https://html.spec.whatwg.org/multipage/introduction.html",
     "https://html.spec.whatwg.org/multipage/infrastructure.html",
     "https://html.spec.whatwg.org/multipage/common-microsyntaxes.html",
     "https://html.spec.whatwg.org/multipage/urls-and-fetching.html",
     "https://html.spec.whatwg.org/multipage/common-dom-interfaces.html",
     "https://html.spec.whatwg.org/multipage/structured-data.html",
     "https://html.spec.whatwg.org/multipage/dom.html",
     "https://html.spec.whatwg.org/multipage/semantics.html",
     "https://html.spec.whatwg.org/multipage/sections.html",
     "https://html.spec.whatwg.org/multipage/grouping-content.html",
     "https://html.spec.whatwg.org/multipage/text-level-semantics.html",
     "https://html.spec.whatwg.org/multipage/links.html",
     "https://html.spec.whatwg.org/multipage/edits.html",
     "https://html.spec.whatwg.org/multipage/embedded-content.html",
     "https://html.spec.whatwg.org/multipage/images.html",
     "https://html.spec.whatwg.org/multipage/iframe-embed-object.html",
     "https://html.spec.whatwg.org/multipage/media.html",
     "https://html.spec.whatwg.org/multipage/image-maps.html",
     "https://html.spec.whatwg.org/multipage/embedded-content-other.html",
     "https://html.spec.whatwg.org/multipage/tables.html",
     "https://html.spec.whatwg.org/multipage/forms.html",
     "https://html.spec.whatwg.org/multipage/input.html",
     "https://html.spec.whatwg.org/multipage/form-elements.html",
     "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html",
     "https://html.spec.whatwg.org/multipage/interactive-elements.html",
     "https://html.spec.whatwg.org/multipage/scripting.html",
     "https://html.spec.whatwg.org/multipage/canvas.html",
     "https://html.spec.whatwg.org/multipage/custom-elements.html",
     "https://html.spec.whatwg.org/multipage/semantics-other.html",
     "https://html.spec.whatwg.org/multipage/microdata.html",
     "https://html.spec.whatwg.org/multipage/interaction.html",
     "https://html.spec.whatwg.org/multipage/dnd.html",
     "https://html.spec.whatwg.org/multipage/popover.html",
     "https://html.spec.whatwg.org/multipage/browsers.html",
     "https://html.spec.whatwg.org/multipage/nav-history-apis.html",
     "https://html.spec.whatwg.org/multipage/document-sequences.html",
     "https://html.spec.whatwg.org/multipage/browsing-the-web.html",
     "https://html.spec.whatwg.org/multipage/document-lifecycle.html",
     "https://html.spec.whatwg.org/multipage/speculative-loading.html",
     "https://html.spec.whatwg.org/multipage/webappapis.html",
     "https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html",
     "https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html",
     "https://html.spec.whatwg.org/multipage/system-state.html",
     "https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html",
     "https://html.spec.whatwg.org/multipage/comms.html",
     "https://html.spec.whatwg.org/multipage/server-sent-events.html",
     "https://html.spec.whatwg.org/multipage/web-messaging.html",
     "https://html.spec.whatwg.org/multipage/workers.html",
     "https://html.spec.whatwg.org/multipage/worklets.html",
     "https://html.spec.whatwg.org/multipage/webstorage.html",
     "https://html.spec.whatwg.org/multipage/syntax.html",
     "https://html.spec.whatwg.org/multipage/parsing.html",
     "https://html.spec.whatwg.org/multipage/named-characters.html",
     "https://html.spec.whatwg.org/multipage/xhtml.html",
     "https://html.spec.whatwg.org/multipage/rendering.html",
     "https://html.spec.whatwg.org/multipage/obsolete.html",
     "https://html.spec.whatwg.org/multipage/iana.html",
     "https://html.spec.whatwg.org/multipage/indices.html",
     "https://html.spec.whatwg.org/multipage/references.html",
     "https://html.spec.whatwg.org/multipage/acknowledgements.html"
    ],
    "filename": "index.html"
   },
   "organization": "WHATWG",
   "groups": [
    {
     "name": "HTML Workstream",
     "url": "https://html.spec.whatwg.org/multipage/"
    }
   ],
   "title": "HTML",
   "source": "whatwg",
   "shortTitle": "HTML",
   "categories": [
    "browser"
   ],
   "standing": "good",
   "tests": {
    "repository": "https://github.com/web-platform-tests/wpt",
    "testPaths": [
     "close-watcher",
     "custom-elements",
     "eventsource",
     "html",
     "imagebitmap-renderingcontext",
     "import-maps",
     "navigation-api",
     "webmessaging",
     "webstorage",
     "workers",
     "worklets",
     "x-frame-options"
    ],
    "excludePaths": [
     "html/cross-origin-embedder-policy/credentialless",
     "html/dom/partial-updates/tentative",
     "html/cross-origin-embedder-policy/credentialless"
    ]
   },
   "fragment": "attr-img-srcset"
  }
 ],
 "mdnUrls": [
  {
   "slug": "Web/HTML/Reference/Elements/img#srcset",
   "title": "`<img>` HTML image embed element",
   "anchor": "srcset",
   "url": "https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/img#srcset"
  },
  {
   "slug": "Web/HTML/Reference/Elements/img#sizes",
   "title": "`<img>` HTML image embed element",
   "anchor": "sizes",
   "url": "https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/img#sizes"
  }
 ],
 "standardPositions": [],
 "hasNegativeStandardPosition": false,
 "stateOfSurveys": [],
 "chromeUseCounters": {},
 "interop": [],
 "wpt": {
  "url": "https://wpt.fyi/results?q=feature:srcset"
 },
 "developerSignals": null,
 "bugs": {
  "chrome": [
   "http://code.google.com/p/chromium/issues/detail?id=296891"
  ]
 },
 "useCases": null,
 "baselineLowDateAsObject": "2017-03-27T00:00:00.000Z",
 "baselineHighDateAsObject": "2019-09-27T00:00:00.000Z"
}