css-sticky.json 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. {
  2. "title":"CSS position:sticky",
  3. "description":"Keeps elements positioned as \"fixed\" or \"relative\" depending on how it appears in the viewport. As a result the element is \"stuck\" when necessary while scrolling.",
  4. "spec":"https://drafts.csswg.org/css-position/#sticky-pos",
  5. "status":"wd",
  6. "links":[
  7. {
  8. "url":"https://developers.google.com/web/updates/2012/08/Stick-your-landings-position-sticky-lands-in-WebKit",
  9. "title":"HTML5Rocks"
  10. },
  11. {
  12. "url":"https://developer.mozilla.org/en-US/docs/Web/CSS/position",
  13. "title":"MDN Web Docs - CSS position"
  14. },
  15. {
  16. "url":"https://www.webplatform.org/docs/css/properties/position",
  17. "title":"WebPlatform Docs"
  18. },
  19. {
  20. "url":"https://github.com/dollarshaveclub/stickybits",
  21. "title":"Polyfill"
  22. },
  23. {
  24. "url":"https://github.com/wilddeer/stickyfill",
  25. "title":"Another polyfill"
  26. },
  27. {
  28. "url":"https://mastery.games/post/position-sticky/",
  29. "title":"geddski article: Examples and Gotchas"
  30. }
  31. ],
  32. "bugs":[
  33. {
  34. "description":"Firefox 58 & below, Chrome 63 & below and Safari 7 & below do not appear to support [sticky table headers](https://jsfiddle.net/Mf4YT/2/)."
  35. },
  36. {
  37. "description":"A parent with overflow set to `auto` will prevent `position: sticky` from working in Safari"
  38. }
  39. ],
  40. "categories":[
  41. "CSS"
  42. ],
  43. "stats":{
  44. "ie":{
  45. "5.5":"n",
  46. "6":"n",
  47. "7":"n",
  48. "8":"n",
  49. "9":"n",
  50. "10":"n",
  51. "11":"n"
  52. },
  53. "edge":{
  54. "12":"n",
  55. "13":"n",
  56. "14":"n",
  57. "15":"n",
  58. "16":"a #6",
  59. "17":"a #6",
  60. "18":"a #6",
  61. "79":"a #4",
  62. "80":"a #4",
  63. "81":"a #4",
  64. "83":"a #4",
  65. "84":"a #4",
  66. "85":"a #4",
  67. "86":"a #4",
  68. "87":"a #4",
  69. "88":"a #4",
  70. "89":"a #4",
  71. "90":"a #4",
  72. "91":"y",
  73. "92":"y",
  74. "93":"y",
  75. "94":"y"
  76. },
  77. "firefox":{
  78. "2":"n",
  79. "3":"n",
  80. "3.5":"n",
  81. "3.6":"n",
  82. "4":"n",
  83. "5":"n",
  84. "6":"n",
  85. "7":"n",
  86. "8":"n",
  87. "9":"n",
  88. "10":"n",
  89. "11":"n",
  90. "12":"n",
  91. "13":"n",
  92. "14":"n",
  93. "15":"n",
  94. "16":"n",
  95. "17":"n",
  96. "18":"n",
  97. "19":"n",
  98. "20":"n",
  99. "21":"n",
  100. "22":"n",
  101. "23":"n",
  102. "24":"n",
  103. "25":"n",
  104. "26":"n d #1",
  105. "27":"n d #1",
  106. "28":"n d #1",
  107. "29":"n d #1",
  108. "30":"n d #1",
  109. "31":"n d #1",
  110. "32":"a #3",
  111. "33":"a #3",
  112. "34":"a #3",
  113. "35":"a #3",
  114. "36":"a #3",
  115. "37":"a #3",
  116. "38":"a #3",
  117. "39":"a #3",
  118. "40":"a #3",
  119. "41":"a #3",
  120. "42":"a #3",
  121. "43":"a #3",
  122. "44":"a #3",
  123. "45":"a #3",
  124. "46":"a #3",
  125. "47":"a #3",
  126. "48":"a #3",
  127. "49":"a #3",
  128. "50":"a #3",
  129. "51":"a #3",
  130. "52":"a #3",
  131. "53":"a #3",
  132. "54":"a #3",
  133. "55":"a #3",
  134. "56":"a #3",
  135. "57":"a #3",
  136. "58":"a #3",
  137. "59":"y",
  138. "60":"y",
  139. "61":"y",
  140. "62":"y",
  141. "63":"y",
  142. "64":"y",
  143. "65":"y",
  144. "66":"y",
  145. "67":"y",
  146. "68":"y",
  147. "69":"y",
  148. "70":"y",
  149. "71":"y",
  150. "72":"y",
  151. "73":"y",
  152. "74":"y",
  153. "75":"y",
  154. "76":"y",
  155. "77":"y",
  156. "78":"y",
  157. "79":"y",
  158. "80":"y",
  159. "81":"y",
  160. "82":"y",
  161. "83":"y",
  162. "84":"y",
  163. "85":"y",
  164. "86":"y",
  165. "87":"y",
  166. "88":"y",
  167. "89":"y",
  168. "90":"y",
  169. "91":"y",
  170. "92":"y",
  171. "93":"y",
  172. "94":"y",
  173. "95":"y"
  174. },
  175. "chrome":{
  176. "4":"n",
  177. "5":"n",
  178. "6":"n",
  179. "7":"n",
  180. "8":"n",
  181. "9":"n",
  182. "10":"n",
  183. "11":"n",
  184. "12":"n",
  185. "13":"n",
  186. "14":"n",
  187. "15":"n",
  188. "16":"n",
  189. "17":"n",
  190. "18":"n",
  191. "19":"n",
  192. "20":"n",
  193. "21":"n",
  194. "22":"n",
  195. "23":"n d #2",
  196. "24":"n d #2",
  197. "25":"n d #2",
  198. "26":"n d #2",
  199. "27":"n d #2",
  200. "28":"n d #2",
  201. "29":"n d #2",
  202. "30":"n d #2",
  203. "31":"n d #2",
  204. "32":"n d #2",
  205. "33":"n d #2",
  206. "34":"n d #2",
  207. "35":"n d #2",
  208. "36":"n d #2",
  209. "37":"n",
  210. "38":"n",
  211. "39":"n",
  212. "40":"n",
  213. "41":"n",
  214. "42":"n",
  215. "43":"n",
  216. "44":"n",
  217. "45":"n",
  218. "46":"n",
  219. "47":"n",
  220. "48":"n",
  221. "49":"n",
  222. "50":"n",
  223. "51":"n",
  224. "52":"n d #2",
  225. "53":"n d #2",
  226. "54":"n d #2",
  227. "55":"n d #2",
  228. "56":"a #4",
  229. "57":"a #4",
  230. "58":"a #4",
  231. "59":"a #4",
  232. "60":"a #4",
  233. "61":"a #4",
  234. "62":"a #4",
  235. "63":"a #4",
  236. "64":"a #4",
  237. "65":"a #4",
  238. "66":"a #4",
  239. "67":"a #4",
  240. "68":"a #4",
  241. "69":"a #4",
  242. "70":"a #4",
  243. "71":"a #4",
  244. "72":"a #4",
  245. "73":"a #4",
  246. "74":"a #4",
  247. "75":"a #4",
  248. "76":"a #4",
  249. "77":"a #4",
  250. "78":"a #4",
  251. "79":"a #4",
  252. "80":"a #4",
  253. "81":"a #4",
  254. "83":"a #4",
  255. "84":"a #4",
  256. "85":"a #4",
  257. "86":"a #4",
  258. "87":"a #4",
  259. "88":"a #4",
  260. "89":"a #4",
  261. "90":"a #4",
  262. "91":"y",
  263. "92":"y",
  264. "93":"y",
  265. "94":"y",
  266. "95":"y",
  267. "96":"y",
  268. "97":"y"
  269. },
  270. "safari":{
  271. "3.1":"n",
  272. "3.2":"n",
  273. "4":"n",
  274. "5":"n",
  275. "5.1":"n",
  276. "6":"n",
  277. "6.1":"a x #5",
  278. "7":"a x #5",
  279. "7.1":"y x",
  280. "8":"y x",
  281. "9":"y x",
  282. "9.1":"y x",
  283. "10":"y x",
  284. "10.1":"y x",
  285. "11":"y x",
  286. "11.1":"y x",
  287. "12":"y x",
  288. "12.1":"y x",
  289. "13":"y",
  290. "13.1":"y",
  291. "14":"y",
  292. "14.1":"y",
  293. "15":"y",
  294. "TP":"y"
  295. },
  296. "opera":{
  297. "9":"n",
  298. "9.5-9.6":"n",
  299. "10.0-10.1":"n",
  300. "10.5":"n",
  301. "10.6":"n",
  302. "11":"n",
  303. "11.1":"n",
  304. "11.5":"n",
  305. "11.6":"n",
  306. "12":"n",
  307. "12.1":"n",
  308. "15":"n",
  309. "16":"n",
  310. "17":"n",
  311. "18":"n",
  312. "19":"n",
  313. "20":"n",
  314. "21":"n",
  315. "22":"n",
  316. "23":"n",
  317. "24":"n",
  318. "25":"n",
  319. "26":"n",
  320. "27":"n",
  321. "28":"n",
  322. "29":"n",
  323. "30":"n",
  324. "31":"n",
  325. "32":"n",
  326. "33":"n",
  327. "34":"n",
  328. "35":"n",
  329. "36":"n",
  330. "37":"n",
  331. "38":"n",
  332. "39":"n d #2",
  333. "40":"n d #2",
  334. "41":"n d #2",
  335. "42":"a #4",
  336. "43":"a #4",
  337. "44":"a #4",
  338. "45":"a #4",
  339. "46":"a #4",
  340. "47":"a #4",
  341. "48":"a #4",
  342. "49":"a #4",
  343. "50":"a #4",
  344. "51":"a #4",
  345. "52":"a #4",
  346. "53":"a #4",
  347. "54":"a #4",
  348. "55":"a #4",
  349. "56":"a #4",
  350. "57":"a #4",
  351. "58":"a #4",
  352. "60":"a #4",
  353. "62":"a #4",
  354. "63":"a #4",
  355. "64":"a #4",
  356. "65":"a #4",
  357. "66":"a #4",
  358. "67":"a #4",
  359. "68":"a #4",
  360. "69":"a #4",
  361. "70":"a #4",
  362. "71":"a #4",
  363. "72":"a #4",
  364. "73":"a #4",
  365. "74":"a #4",
  366. "75":"a #4",
  367. "76":"a #4",
  368. "77":"a #4",
  369. "78":"a #4",
  370. "79":"a #4",
  371. "80":"a #4"
  372. },
  373. "ios_saf":{
  374. "3.2":"n",
  375. "4.0-4.1":"n",
  376. "4.2-4.3":"n",
  377. "5.0-5.1":"n",
  378. "6.0-6.1":"a x #5",
  379. "7.0-7.1":"a x #5",
  380. "8":"y x",
  381. "8.1-8.4":"y x",
  382. "9.0-9.2":"y x",
  383. "9.3":"y x",
  384. "10.0-10.2":"y x",
  385. "10.3":"y x",
  386. "11.0-11.2":"y x",
  387. "11.3-11.4":"y x",
  388. "12.0-12.1":"y x",
  389. "12.2-12.5":"y x",
  390. "13.0-13.1":"y",
  391. "13.2":"y",
  392. "13.3":"y",
  393. "13.4-13.7":"y",
  394. "14.0-14.4":"y",
  395. "14.5-14.8":"y",
  396. "15":"y"
  397. },
  398. "op_mini":{
  399. "all":"n"
  400. },
  401. "android":{
  402. "2.1":"n",
  403. "2.2":"n",
  404. "2.3":"n",
  405. "3":"n",
  406. "4":"n",
  407. "4.1":"n",
  408. "4.2-4.3":"n",
  409. "4.4":"n",
  410. "4.4.3-4.4.4":"n",
  411. "94":"y"
  412. },
  413. "bb":{
  414. "7":"n",
  415. "10":"n"
  416. },
  417. "op_mob":{
  418. "10":"n",
  419. "11":"n",
  420. "11.1":"n",
  421. "11.5":"n",
  422. "12":"n",
  423. "12.1":"n",
  424. "64":"y"
  425. },
  426. "and_chr":{
  427. "94":"y"
  428. },
  429. "and_ff":{
  430. "92":"y"
  431. },
  432. "ie_mob":{
  433. "10":"n",
  434. "11":"n"
  435. },
  436. "and_uc":{
  437. "12.12":"a #4"
  438. },
  439. "samsung":{
  440. "4":"n",
  441. "5.0-5.4":"n",
  442. "6.2-6.4":"y",
  443. "7.2-7.4":"y",
  444. "8.2":"y",
  445. "9.2":"y",
  446. "10.1":"y",
  447. "11.1-11.2":"y",
  448. "12.0":"y",
  449. "13.0":"y",
  450. "14.0":"y",
  451. "15.0":"y"
  452. },
  453. "and_qq":{
  454. "10.4":"a #4"
  455. },
  456. "baidu":{
  457. "7.12":"n"
  458. },
  459. "kaios":{
  460. "2.5":"a #3"
  461. }
  462. },
  463. "notes":"Any ancestor between the sticky element and its user-scrollable container with overflow computed as anything but `visible`/`clip` will effectively prevent sticking behavior.",
  464. "notes_by_num":{
  465. "1":"Can be enabled in Firefox by setting the about:config preference layout.css.sticky.enabled to true",
  466. "2":"Enabled through the \"experimental Web Platform features\" flag",
  467. "3":"Not supported on any `table` parts - See [Firefox bug](https://bugzilla.mozilla.org/show_bug.cgi?id=975644)",
  468. "4":"Supported on `th` elements, but not `thead` or `tr` - See [Chrome bug](https://bugs.chromium.org/p/chromium/issues/detail?id=702927)",
  469. "5":"Do not appear to support sticky table headers",
  470. "6":"Supported on `th` elements, but not `thead` or `tr` - See [Edge bug](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/16765952/)"
  471. },
  472. "usage_perc_y":90.1,
  473. "usage_perc_a":5.86,
  474. "ucprefix":false,
  475. "parent":"",
  476. "keywords":"",
  477. "ie_id":"positionsticky",
  478. "chrome_id":"6190250464378880",
  479. "firefox_id":"",
  480. "webkit_id":"feature-position:-sticky",
  481. "shown":true
  482. }