f526d00ba0deb31349de71b01321cbf2f58e5f1062a3b4c2de24292d0f362929c53a19741880ed88976d18d37af6eb512e5a9ef596a2823950d4d6098b12d1 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  1. {
  2. "title":"Srcset and sizes attributes",
  3. "description":"The `srcset` and `sizes` attributes on `img` (or `source`) elements allow authors to define various image resources and \"hints\" that assist a user agent to determine the most appropriate image source to display (e.g. high-resolution displays, small monitors, etc).",
  4. "spec":"https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-srcset",
  5. "status":"ls",
  6. "links":[
  7. {
  8. "url":"https://www.webkit.org/blog/2910/improved-support-for-high-resolution-displays-with-the-srcset-image-attribute/",
  9. "title":"Improved support for high-resolution displays with the srcset image attribute"
  10. },
  11. {
  12. "url":"https://ericportis.com/posts/2014/srcset-sizes/",
  13. "title":"Blog post on srcset & sizes"
  14. },
  15. {
  16. "url":"https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images",
  17. "title":"MDN: Responsive images"
  18. },
  19. {
  20. "url":"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img",
  21. "title":"MDN: <img> element"
  22. }
  23. ],
  24. "bugs":[
  25. {
  26. "description":"Edge versions 13, 14 and 15 intermittently display distorted images as soon as they encounter a srcset attribute, seemingly dependent on caching and network timing. [see bug](https://web.archive.org/web/20171210184313/https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7778808/)"
  27. },
  28. {
  29. "description":"Safari versions 11+ for img elements generated with JavaScript, when src attribute is first, loads that image even if srcset attribute will make it load another one. A workaround is to put srcset attribute before the src. [see bug](https://bugs.webkit.org/show_bug.cgi?id=190031)"
  30. }
  31. ],
  32. "categories":[
  33. "HTML5"
  34. ],
  35. "stats":{
  36. "ie":{
  37. "5.5":"n",
  38. "6":"n",
  39. "7":"n",
  40. "8":"n",
  41. "9":"n",
  42. "10":"n",
  43. "11":"n"
  44. },
  45. "edge":{
  46. "12":"a #2",
  47. "13":"n #3",
  48. "14":"n #3",
  49. "15":"n #3",
  50. "16":"y",
  51. "17":"y",
  52. "18":"y",
  53. "79":"y",
  54. "80":"y",
  55. "81":"y",
  56. "83":"y",
  57. "84":"y",
  58. "85":"y",
  59. "86":"y",
  60. "87":"y",
  61. "88":"y",
  62. "89":"y",
  63. "90":"y",
  64. "91":"y",
  65. "92":"y",
  66. "93":"y",
  67. "94":"y",
  68. "95":"y",
  69. "96":"y",
  70. "97":"y",
  71. "98":"y",
  72. "99":"y",
  73. "100":"y",
  74. "101":"y",
  75. "102":"y",
  76. "103":"y",
  77. "104":"y",
  78. "105":"y",
  79. "106":"y",
  80. "107":"y",
  81. "108":"y",
  82. "109":"y",
  83. "110":"y",
  84. "111":"y",
  85. "112":"y",
  86. "113":"y",
  87. "114":"y",
  88. "115":"y",
  89. "116":"y",
  90. "117":"y",
  91. "118":"y",
  92. "119":"y",
  93. "120":"y",
  94. "121":"y",
  95. "122":"y",
  96. "123":"y",
  97. "124":"y",
  98. "125":"y",
  99. "126":"y",
  100. "127":"y",
  101. "128":"y",
  102. "129":"y",
  103. "130":"y",
  104. "131":"y",
  105. "132":"y",
  106. "133":"y",
  107. "134":"y",
  108. "135":"y",
  109. "136":"y",
  110. "137":"y",
  111. "138":"y",
  112. "139":"y",
  113. "140":"y"
  114. },
  115. "firefox":{
  116. "2":"n",
  117. "3":"n",
  118. "3.5":"n",
  119. "3.6":"n",
  120. "4":"n",
  121. "5":"n",
  122. "6":"n",
  123. "7":"n",
  124. "8":"n",
  125. "9":"n",
  126. "10":"n",
  127. "11":"n",
  128. "12":"n",
  129. "13":"n",
  130. "14":"n",
  131. "15":"n",
  132. "16":"n",
  133. "17":"n",
  134. "18":"n",
  135. "19":"n",
  136. "20":"n",
  137. "21":"n",
  138. "22":"n",
  139. "23":"n",
  140. "24":"n",
  141. "25":"n",
  142. "26":"n",
  143. "27":"n",
  144. "28":"n",
  145. "29":"n",
  146. "30":"n",
  147. "31":"n",
  148. "32":"n d #1",
  149. "33":"n d #1",
  150. "34":"n d #1",
  151. "35":"n d #1",
  152. "36":"n d #1",
  153. "37":"n d #1",
  154. "38":"y",
  155. "39":"y",
  156. "40":"y",
  157. "41":"y",
  158. "42":"y",
  159. "43":"y",
  160. "44":"y",
  161. "45":"y",
  162. "46":"y",
  163. "47":"y",
  164. "48":"y",
  165. "49":"y",
  166. "50":"y",
  167. "51":"y",
  168. "52":"y",
  169. "53":"y",
  170. "54":"y",
  171. "55":"y",
  172. "56":"y",
  173. "57":"y",
  174. "58":"y",
  175. "59":"y",
  176. "60":"y",
  177. "61":"y",
  178. "62":"y",
  179. "63":"y",
  180. "64":"y",
  181. "65":"y",
  182. "66":"y",
  183. "67":"y",
  184. "68":"y",
  185. "69":"y",
  186. "70":"y",
  187. "71":"y",
  188. "72":"y",
  189. "73":"y",
  190. "74":"y",
  191. "75":"y",
  192. "76":"y",
  193. "77":"y",
  194. "78":"y",
  195. "79":"y",
  196. "80":"y",
  197. "81":"y",
  198. "82":"y",
  199. "83":"y",
  200. "84":"y",
  201. "85":"y",
  202. "86":"y",
  203. "87":"y",
  204. "88":"y",
  205. "89":"y",
  206. "90":"y",
  207. "91":"y",
  208. "92":"y",
  209. "93":"y",
  210. "94":"y",
  211. "95":"y",
  212. "96":"y",
  213. "97":"y",
  214. "98":"y",
  215. "99":"y",
  216. "100":"y",
  217. "101":"y",
  218. "102":"y",
  219. "103":"y",
  220. "104":"y",
  221. "105":"y",
  222. "106":"y",
  223. "107":"y",
  224. "108":"y",
  225. "109":"y",
  226. "110":"y",
  227. "111":"y",
  228. "112":"y",
  229. "113":"y",
  230. "114":"y",
  231. "115":"y",
  232. "116":"y",
  233. "117":"y",
  234. "118":"y",
  235. "119":"y",
  236. "120":"y",
  237. "121":"y",
  238. "122":"y",
  239. "123":"y",
  240. "124":"y",
  241. "125":"y",
  242. "126":"y",
  243. "127":"y",
  244. "128":"y",
  245. "129":"y",
  246. "130":"y",
  247. "131":"y",
  248. "132":"y",
  249. "133":"y",
  250. "134":"y",
  251. "135":"y",
  252. "136":"y",
  253. "137":"y",
  254. "138":"y",
  255. "139":"y",
  256. "140":"y",
  257. "141":"y",
  258. "142":"y",
  259. "143":"y",
  260. "144":"y",
  261. "145":"y"
  262. },
  263. "chrome":{
  264. "4":"n",
  265. "5":"n",
  266. "6":"n",
  267. "7":"n",
  268. "8":"n",
  269. "9":"n",
  270. "10":"n",
  271. "11":"n",
  272. "12":"n",
  273. "13":"n",
  274. "14":"n",
  275. "15":"n",
  276. "16":"n",
  277. "17":"n",
  278. "18":"n",
  279. "19":"n",
  280. "20":"n",
  281. "21":"n",
  282. "22":"n",
  283. "23":"n",
  284. "24":"n",
  285. "25":"n",
  286. "26":"n",
  287. "27":"n",
  288. "28":"n",
  289. "29":"n",
  290. "30":"n",
  291. "31":"n",
  292. "32":"n",
  293. "33":"n",
  294. "34":"a #2",
  295. "35":"a #2",
  296. "36":"a #2",
  297. "37":"a #2",
  298. "38":"y",
  299. "39":"y",
  300. "40":"y",
  301. "41":"y",
  302. "42":"y",
  303. "43":"y",
  304. "44":"y",
  305. "45":"y",
  306. "46":"y",
  307. "47":"y",
  308. "48":"y",
  309. "49":"y",
  310. "50":"y",
  311. "51":"y",
  312. "52":"y",
  313. "53":"y",
  314. "54":"y",
  315. "55":"y",
  316. "56":"y",
  317. "57":"y",
  318. "58":"y",
  319. "59":"y",
  320. "60":"y",
  321. "61":"y",
  322. "62":"y",
  323. "63":"y",
  324. "64":"y",
  325. "65":"y",
  326. "66":"y",
  327. "67":"y",
  328. "68":"y",
  329. "69":"y",
  330. "70":"y",
  331. "71":"y",
  332. "72":"y",
  333. "73":"y",
  334. "74":"y",
  335. "75":"y",
  336. "76":"y",
  337. "77":"y",
  338. "78":"y",
  339. "79":"y",
  340. "80":"y",
  341. "81":"y",
  342. "83":"y",
  343. "84":"y",
  344. "85":"y",
  345. "86":"y",
  346. "87":"y",
  347. "88":"y",
  348. "89":"y",
  349. "90":"y",
  350. "91":"y",
  351. "92":"y",
  352. "93":"y",
  353. "94":"y",
  354. "95":"y",
  355. "96":"y",
  356. "97":"y",
  357. "98":"y",
  358. "99":"y",
  359. "100":"y",
  360. "101":"y",
  361. "102":"y",
  362. "103":"y",
  363. "104":"y",
  364. "105":"y",
  365. "106":"y",
  366. "107":"y",
  367. "108":"y",
  368. "109":"y",
  369. "110":"y",
  370. "111":"y",
  371. "112":"y",
  372. "113":"y",
  373. "114":"y",
  374. "115":"y",
  375. "116":"y",
  376. "117":"y",
  377. "118":"y",
  378. "119":"y",
  379. "120":"y",
  380. "121":"y",
  381. "122":"y",
  382. "123":"y",
  383. "124":"y",
  384. "125":"y",
  385. "126":"y",
  386. "127":"y",
  387. "128":"y",
  388. "129":"y",
  389. "130":"y",
  390. "131":"y",
  391. "132":"y",
  392. "133":"y",
  393. "134":"y",
  394. "135":"y",
  395. "136":"y",
  396. "137":"y",
  397. "138":"y",
  398. "139":"y",
  399. "140":"y",
  400. "141":"y",
  401. "142":"y",
  402. "143":"y"
  403. },
  404. "safari":{
  405. "3.1":"n",
  406. "3.2":"n",
  407. "4":"n",
  408. "5":"n",
  409. "5.1":"n",
  410. "6":"n",
  411. "6.1":"n",
  412. "7":"n",
  413. "7.1":"a #2",
  414. "8":"a #2",
  415. "9":"a #4",
  416. "9.1":"a #4",
  417. "10":"a #4",
  418. "10.1":"a #4",
  419. "11":"a #4 #5",
  420. "11.1":"a #4 #5",
  421. "12":"a #4 #5",
  422. "12.1":"a #4 #5",
  423. "13":"a #4 #5",
  424. "13.1":"a #4 #5",
  425. "14":"a #4 #5",
  426. "14.1":"a #4 #5",
  427. "15":"a #4 #5",
  428. "15.1":"a #4 #5",
  429. "15.2-15.3":"a #4 #5",
  430. "15.4":"a #4 #5",
  431. "15.5":"a #4 #5",
  432. "15.6":"a #4 #5",
  433. "16.0":"a #4 #5",
  434. "16.1":"a #4 #5",
  435. "16.2":"a #4 #5",
  436. "16.3":"a #4 #5",
  437. "16.4":"a #4 #5",
  438. "16.5":"a #4 #5",
  439. "16.6":"a #4 #5",
  440. "17.0":"a #4 #5",
  441. "17.1":"a #4 #5",
  442. "17.2":"a #4 #5",
  443. "17.3":"a #4 #5",
  444. "17.4":"a #4 #5",
  445. "17.5":"a #4 #5",
  446. "17.6":"a #4 #5",
  447. "18.0":"a #4 #5",
  448. "18.1":"a #4 #5",
  449. "18.2":"a #4 #5",
  450. "18.3":"a #4 #5",
  451. "18.4":"a #4 #5",
  452. "18.5-18.6":"a #4 #5",
  453. "26.0":"a #4 #5",
  454. "26.1":"a #4 #5",
  455. "TP":"a #4 #5"
  456. },
  457. "opera":{
  458. "9":"n",
  459. "9.5-9.6":"n",
  460. "10.0-10.1":"n",
  461. "10.5":"n",
  462. "10.6":"n",
  463. "11":"n",
  464. "11.1":"n",
  465. "11.5":"n",
  466. "11.6":"n",
  467. "12":"n",
  468. "12.1":"n",
  469. "15":"n",
  470. "16":"n",
  471. "17":"n",
  472. "18":"n",
  473. "19":"n",
  474. "20":"n",
  475. "21":"a #2",
  476. "22":"a #2",
  477. "23":"a #2",
  478. "24":"a #2",
  479. "25":"y",
  480. "26":"y",
  481. "27":"y",
  482. "28":"y",
  483. "29":"y",
  484. "30":"y",
  485. "31":"y",
  486. "32":"y",
  487. "33":"y",
  488. "34":"y",
  489. "35":"y",
  490. "36":"y",
  491. "37":"y",
  492. "38":"y",
  493. "39":"y",
  494. "40":"y",
  495. "41":"y",
  496. "42":"y",
  497. "43":"y",
  498. "44":"y",
  499. "45":"y",
  500. "46":"y",
  501. "47":"y",
  502. "48":"y",
  503. "49":"y",
  504. "50":"y",
  505. "51":"y",
  506. "52":"y",
  507. "53":"y",
  508. "54":"y",
  509. "55":"y",
  510. "56":"y",
  511. "57":"y",
  512. "58":"y",
  513. "60":"y",
  514. "62":"y",
  515. "63":"y",
  516. "64":"y",
  517. "65":"y",
  518. "66":"y",
  519. "67":"y",
  520. "68":"y",
  521. "69":"y",
  522. "70":"y",
  523. "71":"y",
  524. "72":"y",
  525. "73":"y",
  526. "74":"y",
  527. "75":"y",
  528. "76":"y",
  529. "77":"y",
  530. "78":"y",
  531. "79":"y",
  532. "80":"y",
  533. "81":"y",
  534. "82":"y",
  535. "83":"y",
  536. "84":"y",
  537. "85":"y",
  538. "86":"y",
  539. "87":"y",
  540. "88":"y",
  541. "89":"y",
  542. "90":"y",
  543. "91":"y",
  544. "92":"y",
  545. "93":"y",
  546. "94":"y",
  547. "95":"y",
  548. "96":"y",
  549. "97":"y",
  550. "98":"y",
  551. "99":"y",
  552. "100":"y",
  553. "101":"y",
  554. "102":"y",
  555. "103":"y",
  556. "104":"y",
  557. "105":"y",
  558. "106":"y",
  559. "107":"y",
  560. "108":"y",
  561. "109":"y",
  562. "110":"y",
  563. "111":"y",
  564. "112":"y",
  565. "113":"y",
  566. "114":"y",
  567. "115":"y",
  568. "116":"y",
  569. "117":"y",
  570. "118":"y",
  571. "119":"y",
  572. "120":"y",
  573. "121":"y",
  574. "122":"y"
  575. },
  576. "ios_saf":{
  577. "3.2":"n",
  578. "4.0-4.1":"n",
  579. "4.2-4.3":"n",
  580. "5.0-5.1":"n",
  581. "6.0-6.1":"n",
  582. "7.0-7.1":"n",
  583. "8":"a #2",
  584. "8.1-8.4":"a #2",
  585. "9.0-9.2":"a #4",
  586. "9.3":"a #4",
  587. "10.0-10.2":"a #4",
  588. "10.3":"a #4",
  589. "11.0-11.2":"a #4",
  590. "11.3-11.4":"a #4",
  591. "12.0-12.1":"a #4",
  592. "12.2-12.5":"a #4",
  593. "13.0-13.1":"a #4",
  594. "13.2":"a #4",
  595. "13.3":"a #4",
  596. "13.4-13.7":"a #4",
  597. "14.0-14.4":"a #4",
  598. "14.5-14.8":"a #4",
  599. "15.0-15.1":"a #4",
  600. "15.2-15.3":"a #4",
  601. "15.4":"a #4",
  602. "15.5":"a #4",
  603. "15.6-15.8":"a #4",
  604. "16.0":"a #4",
  605. "16.1":"a #4",
  606. "16.2":"a #4",
  607. "16.3":"a #4",
  608. "16.4":"a #4",
  609. "16.5":"a #4",
  610. "16.6-16.7":"a #4",
  611. "17.0":"a #4",
  612. "17.1":"a #4",
  613. "17.2":"a #4",
  614. "17.3":"a #4",
  615. "17.4":"a #4",
  616. "17.5":"a #4",
  617. "17.6-17.7":"a #4",
  618. "18.0":"a #4",
  619. "18.1":"a #4",
  620. "18.2":"a #4",
  621. "18.3":"a #4",
  622. "18.4":"a #4",
  623. "18.5-18.6":"a #4",
  624. "26.0":"a #4",
  625. "26.1":"a #4"
  626. },
  627. "op_mini":{
  628. "all":"n"
  629. },
  630. "android":{
  631. "2.1":"n",
  632. "2.2":"n",
  633. "2.3":"n",
  634. "3":"n",
  635. "4":"n",
  636. "4.1":"n",
  637. "4.2-4.3":"n",
  638. "4.4":"n",
  639. "4.4.3-4.4.4":"n",
  640. "139":"y"
  641. },
  642. "bb":{
  643. "7":"n",
  644. "10":"n"
  645. },
  646. "op_mob":{
  647. "10":"n",
  648. "11":"n",
  649. "11.1":"n",
  650. "11.5":"n",
  651. "12":"n",
  652. "12.1":"n",
  653. "80":"y"
  654. },
  655. "and_chr":{
  656. "139":"y"
  657. },
  658. "and_ff":{
  659. "142":"y"
  660. },
  661. "ie_mob":{
  662. "10":"n",
  663. "11":"n"
  664. },
  665. "and_uc":{
  666. "15.5":"y"
  667. },
  668. "samsung":{
  669. "4":"y",
  670. "5.0-5.4":"y",
  671. "6.2-6.4":"y",
  672. "7.2-7.4":"y",
  673. "8.2":"y",
  674. "9.2":"y",
  675. "10.1":"y",
  676. "11.1-11.2":"y",
  677. "12.0":"y",
  678. "13.0":"y",
  679. "14.0":"y",
  680. "15.0":"y",
  681. "16.0":"y",
  682. "17.0":"y",
  683. "18.0":"y",
  684. "19.0":"y",
  685. "20":"y",
  686. "21":"y",
  687. "22":"y",
  688. "23":"y",
  689. "24":"y",
  690. "25":"y",
  691. "26":"y",
  692. "27":"y",
  693. "28":"y"
  694. },
  695. "and_qq":{
  696. "14.9":"y"
  697. },
  698. "baidu":{
  699. "13.52":"y"
  700. },
  701. "kaios":{
  702. "2.5":"y",
  703. "3.0-3.1":"y"
  704. }
  705. },
  706. "notes":"",
  707. "notes_by_num":{
  708. "1":"Can be enabled in Firefox by setting the about:config preference dom.image.srcset.enabled to true",
  709. "2":"Supports the subset of the syntax for resolution switching (using the `x` descriptor), but not the full syntax that can be used with `sizes` (using the `w` descriptor).",
  710. "3":"Intermittently displays distorted images due to bug present (see known issues)",
  711. "4":"Does not support min/max expressions.",
  712. "5":"For JavaScript-generated img elements, loads src first, even if srcset will also make it load another image (see known issues)"
  713. },
  714. "usage_perc_y":82.09,
  715. "usage_perc_a":13.84,
  716. "ucprefix":false,
  717. "parent":"",
  718. "keywords":"srcset attribute",
  719. "chrome_id":"4644337115725824",
  720. "shown":true
  721. }