css-sticky.json 9.9 KB

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