[go: up one dir, main page]

CSS position:sticky

- WD

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.

Chrome

  1. ❌ 4 - 22: Not supported
  2. ❌ 23 - 36: Disabled by default
  3. ❌ 37 - 51: Not supported
  4. ❌ 52 - 55: Disabled by default
  5. ◐ 56 - 90: Partial support
  6. ✅ 91 - 153: Supported
  7. ✅ 154: Supported
  8. ✅ 155 - 157: Supported

Edge

  1. ❌ 12 - 15: Not supported
  2. ◐ 16 - 18: Partial support
  3. ◐ 79 - 90: Partial support
  4. ✅ 91 - 153: Supported
  5. ✅ 154: Supported

Safari

  1. ❌ 3.1 - 6: Not supported
  2. ◐ 6.1 - 7: Partial support
  3. ✅ 7.1 - 12.1: Supported
  4. ✅ 13 - 26.6: Supported
  5. ✅ 27: Supported
  6. ✅ 27.1 - TP: Supported

Firefox

  1. ❌ 2 - 25: Not supported
  2. ❌ 26 - 31: Disabled by default
  3. ◐ 32 - 58: Partial support
  4. ✅ 59 - 157: Supported
  5. ✅ 158: Supported
  6. ✅ 159 - 161: Supported

Opera

  1. ❌ 9 - 38: Not supported
  2. ❌ 39 - 41: Disabled by default
  3. ◐ 42 - 77: Partial support
  4. ✅ 78 - 134: Supported
  5. ✅ 135: Supported

IE

  1. ❌ 5.5 - 10: Not supported
  2. ❌ 11: Not supported

Chrome for Android

  1. ✅ 154: Supported

Safari on iOS

  1. ❌ 3.2 - 5.1: Not supported
  2. ◐ 6 - 7.1: Partial support
  3. ✅ 8 - 12.5: Supported
  4. ✅ 13 - 26.6: Supported
  5. ✅ 27.0: Supported
  6. ✅ 27.1 - 27.2: Supported

Samsung Internet

  1. ❌ 4 - 5.4: Not supported
  2. ✅ 6.2 - 29: Supported
  3. ✅ 30: Supported

Opera Mini

  1. ❌ all: Not supported

Opera Mobile

  1. ❌ 10 - 12.1: Not supported
  2. ✅ 80: Supported

UC Browser for Android

  1. ✅ 15.5: Supported

Android Browser

  1. ❌ 2.1 - 4.4.4: Not supported
  2. ✅ 154: Supported

Firefox for Android

  1. ✅ 157: Supported

QQ Browser

  1. ◐ 14.9: Partial support

Baidu Browser

  1. ✅ 13.52: Supported

KaiOS Browser

  1. ◐ 2.5: Partial support
  2. ✅ 3: Supported

sticks to its nearest ancestor that has a scrolling mechanism (created when overflow is hidden, scroll, auto, or overlay), even if that ancestor isn't the nearest actually scrolling ancestor

Resources:
MDN Web Docs - CSS position
HTML5Rocks
FrontendAtlas: Troubleshooting position: sticky
Polyfill
Another polyfill
geddski article: Examples and Gotchas
WebPlatform Docs