css-sticky.json 7.9 KB

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