css-sticky.json 7.5 KB

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