css-sticky.json 9.8 KB

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