css-sticky.json 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  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. },
  69. "firefox":{
  70. "2":"n",
  71. "3":"n",
  72. "3.5":"n",
  73. "3.6":"n",
  74. "4":"n",
  75. "5":"n",
  76. "6":"n",
  77. "7":"n",
  78. "8":"n",
  79. "9":"n",
  80. "10":"n",
  81. "11":"n",
  82. "12":"n",
  83. "13":"n",
  84. "14":"n",
  85. "15":"n",
  86. "16":"n",
  87. "17":"n",
  88. "18":"n",
  89. "19":"n",
  90. "20":"n",
  91. "21":"n",
  92. "22":"n",
  93. "23":"n",
  94. "24":"n",
  95. "25":"n",
  96. "26":"n d #1",
  97. "27":"n d #1",
  98. "28":"n d #1",
  99. "29":"n d #1",
  100. "30":"n d #1",
  101. "31":"n d #1",
  102. "32":"a #3",
  103. "33":"a #3",
  104. "34":"a #3",
  105. "35":"a #3",
  106. "36":"a #3",
  107. "37":"a #3",
  108. "38":"a #3",
  109. "39":"a #3",
  110. "40":"a #3",
  111. "41":"a #3",
  112. "42":"a #3",
  113. "43":"a #3",
  114. "44":"a #3",
  115. "45":"a #3",
  116. "46":"a #3",
  117. "47":"a #3",
  118. "48":"a #3",
  119. "49":"a #3",
  120. "50":"a #3",
  121. "51":"a #3",
  122. "52":"a #3",
  123. "53":"a #3",
  124. "54":"a #3",
  125. "55":"a #3",
  126. "56":"a #3",
  127. "57":"a #3",
  128. "58":"a #3",
  129. "59":"y",
  130. "60":"y",
  131. "61":"y",
  132. "62":"y",
  133. "63":"y",
  134. "64":"y",
  135. "65":"y",
  136. "66":"y",
  137. "67":"y",
  138. "68":"y",
  139. "69":"y",
  140. "70":"y",
  141. "71":"y",
  142. "72":"y",
  143. "73":"y",
  144. "74":"y",
  145. "75":"y",
  146. "76":"y",
  147. "77":"y",
  148. "78":"y",
  149. "79":"y",
  150. "80":"y",
  151. "81":"y",
  152. "82":"y",
  153. "83":"y"
  154. },
  155. "chrome":{
  156. "4":"n",
  157. "5":"n",
  158. "6":"n",
  159. "7":"n",
  160. "8":"n",
  161. "9":"n",
  162. "10":"n",
  163. "11":"n",
  164. "12":"n",
  165. "13":"n",
  166. "14":"n",
  167. "15":"n",
  168. "16":"n",
  169. "17":"n",
  170. "18":"n",
  171. "19":"n",
  172. "20":"n",
  173. "21":"n",
  174. "22":"n",
  175. "23":"n d #2",
  176. "24":"n d #2",
  177. "25":"n d #2",
  178. "26":"n d #2",
  179. "27":"n d #2",
  180. "28":"n d #2",
  181. "29":"n d #2",
  182. "30":"n d #2",
  183. "31":"n d #2",
  184. "32":"n d #2",
  185. "33":"n d #2",
  186. "34":"n d #2",
  187. "35":"n d #2",
  188. "36":"n d #2",
  189. "37":"n",
  190. "38":"n",
  191. "39":"n",
  192. "40":"n",
  193. "41":"n",
  194. "42":"n",
  195. "43":"n",
  196. "44":"n",
  197. "45":"n",
  198. "46":"n",
  199. "47":"n",
  200. "48":"n",
  201. "49":"n",
  202. "50":"n",
  203. "51":"n",
  204. "52":"n d #2",
  205. "53":"n d #2",
  206. "54":"n d #2",
  207. "55":"n d #2",
  208. "56":"a #4",
  209. "57":"a #4",
  210. "58":"a #4",
  211. "59":"a #4",
  212. "60":"a #4",
  213. "61":"a #4",
  214. "62":"a #4",
  215. "63":"a #4",
  216. "64":"a #4",
  217. "65":"a #4",
  218. "66":"a #4",
  219. "67":"a #4",
  220. "68":"a #4",
  221. "69":"a #4",
  222. "70":"a #4",
  223. "71":"a #4",
  224. "72":"a #4",
  225. "73":"a #4",
  226. "74":"a #4",
  227. "75":"a #4",
  228. "76":"a #4",
  229. "77":"a #4",
  230. "78":"a #4",
  231. "79":"a #4",
  232. "80":"a #4",
  233. "81":"a #4",
  234. "83":"a #4",
  235. "84":"a #4",
  236. "85":"a #4",
  237. "86":"a #4",
  238. "87":"a #4",
  239. "88":"a #4",
  240. "89":"a #4"
  241. },
  242. "safari":{
  243. "3.1":"n",
  244. "3.2":"n",
  245. "4":"n",
  246. "5":"n",
  247. "5.1":"n",
  248. "6":"n",
  249. "6.1":"a x #5",
  250. "7":"a x #5",
  251. "7.1":"y x",
  252. "8":"y x",
  253. "9":"y x",
  254. "9.1":"y x",
  255. "10":"y x",
  256. "10.1":"y x",
  257. "11":"y x",
  258. "11.1":"y x",
  259. "12":"y x",
  260. "12.1":"y x",
  261. "13":"y",
  262. "13.1":"y",
  263. "14":"y",
  264. "TP":"y"
  265. },
  266. "opera":{
  267. "9":"n",
  268. "9.5-9.6":"n",
  269. "10.0-10.1":"n",
  270. "10.5":"n",
  271. "10.6":"n",
  272. "11":"n",
  273. "11.1":"n",
  274. "11.5":"n",
  275. "11.6":"n",
  276. "12":"n",
  277. "12.1":"n",
  278. "15":"n",
  279. "16":"n",
  280. "17":"n",
  281. "18":"n",
  282. "19":"n",
  283. "20":"n",
  284. "21":"n",
  285. "22":"n",
  286. "23":"n",
  287. "24":"n",
  288. "25":"n",
  289. "26":"n",
  290. "27":"n",
  291. "28":"n",
  292. "29":"n",
  293. "30":"n",
  294. "31":"n",
  295. "32":"n",
  296. "33":"n",
  297. "34":"n",
  298. "35":"n",
  299. "36":"n",
  300. "37":"n",
  301. "38":"n",
  302. "39":"n d #2",
  303. "40":"n d #2",
  304. "41":"n d #2",
  305. "42":"a #4",
  306. "43":"a #4",
  307. "44":"a #4",
  308. "45":"a #4",
  309. "46":"a #4",
  310. "47":"a #4",
  311. "48":"a #4",
  312. "49":"a #4",
  313. "50":"a #4",
  314. "51":"a #4",
  315. "52":"a #4",
  316. "53":"a #4",
  317. "54":"a #4",
  318. "55":"a #4",
  319. "56":"a #4",
  320. "57":"a #4",
  321. "58":"a #4",
  322. "60":"a #4",
  323. "62":"a #4",
  324. "63":"a #4",
  325. "64":"a #4",
  326. "65":"a #4",
  327. "66":"a #4",
  328. "67":"a #4",
  329. "68":"a #4",
  330. "69":"a #4",
  331. "70":"a #4",
  332. "71":"a #4"
  333. },
  334. "ios_saf":{
  335. "3.2":"n",
  336. "4.0-4.1":"n",
  337. "4.2-4.3":"n",
  338. "5.0-5.1":"n",
  339. "6.0-6.1":"a x #5",
  340. "7.0-7.1":"a x #5",
  341. "8":"y x",
  342. "8.1-8.4":"y x",
  343. "9.0-9.2":"y x",
  344. "9.3":"y x",
  345. "10.0-10.2":"y x",
  346. "10.3":"y x",
  347. "11.0-11.2":"y x",
  348. "11.3-11.4":"y x",
  349. "12.0-12.1":"y x",
  350. "12.2-12.4":"y x",
  351. "13.0-13.1":"y",
  352. "13.2":"y",
  353. "13.3":"y",
  354. "13.4-13.7":"y",
  355. "14":"y"
  356. },
  357. "op_mini":{
  358. "all":"n"
  359. },
  360. "android":{
  361. "2.1":"n",
  362. "2.2":"n",
  363. "2.3":"n",
  364. "3":"n",
  365. "4":"n",
  366. "4.1":"n",
  367. "4.2-4.3":"n",
  368. "4.4":"n",
  369. "4.4.3-4.4.4":"n",
  370. "81":"a #4"
  371. },
  372. "bb":{
  373. "7":"n",
  374. "10":"n"
  375. },
  376. "op_mob":{
  377. "10":"n",
  378. "11":"n",
  379. "11.1":"n",
  380. "11.5":"n",
  381. "12":"n",
  382. "12.1":"n",
  383. "59":"a #4"
  384. },
  385. "and_chr":{
  386. "85":"a #4"
  387. },
  388. "and_ff":{
  389. "79":"y"
  390. },
  391. "ie_mob":{
  392. "10":"n",
  393. "11":"n"
  394. },
  395. "and_uc":{
  396. "12.12":"a #4"
  397. },
  398. "samsung":{
  399. "4":"n",
  400. "5.0-5.4":"n",
  401. "6.2-6.4":"y",
  402. "7.2-7.4":"y",
  403. "8.2":"y",
  404. "9.2":"y",
  405. "10.1":"y",
  406. "11.1-11.2":"y",
  407. "12.0":"y"
  408. },
  409. "and_qq":{
  410. "10.4":"a #4"
  411. },
  412. "baidu":{
  413. "7.12":"n"
  414. },
  415. "kaios":{
  416. "2.5":"a #3"
  417. }
  418. },
  419. "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.",
  420. "notes_by_num":{
  421. "1":"Can be enabled in Firefox by setting the about:config preference layout.css.sticky.enabled to true",
  422. "2":"Enabled through the \"experimental Web Platform features\" flag",
  423. "3":"Not supported on any `table` parts - See [Firefox bug](https://bugzilla.mozilla.org/show_bug.cgi?id=975644)",
  424. "4":"Supported on `th` elements, but not `thead` or `tr` - See [Chrome bug](https://bugs.chromium.org/p/chromium/issues/detail?id=702927)",
  425. "5":"Do not appear to support sticky table headers",
  426. "6":"Supported on `th` elements, but not `thead` or `tr` - See [Edge bug](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/16765952/)"
  427. },
  428. "usage_perc_y":22.75,
  429. "usage_perc_a":72.41,
  430. "ucprefix":false,
  431. "parent":"",
  432. "keywords":"",
  433. "ie_id":"positionsticky",
  434. "chrome_id":"6190250464378880",
  435. "firefox_id":"",
  436. "webkit_id":"feature-position:-sticky",
  437. "shown":true
  438. }