CSS display: contents

- CR

display: contents causes an element's children to appear as if they were direct children of the element's parent, ignoring the element itself. This can be useful when a wrapper element should be ignored when using CSS grid or similar layout techniques.

Chrome

  1. ❌ 4 - 57: Not supported
  2. ❌ 58 - 64: Disabled by default
  3. ◐ 65 - 88: Partial support
  4. ◐ 89 - 155: Partial support
  5. ◐ 156: Partial support
  6. ◐ 157 - 159: Partial support

Edge

  1. ❌ 12 - 18: Not supported
  2. ◐ 79 - 88: Partial support
  3. ◐ 89 - 154: Partial support
  4. ◐ 155: Partial support

Safari

  1. ❌ 3.1 - 11: Not supported
  2. ◐ 11.1 - 15.6: Partial support
  3. ◐ 16.0 - 16.6: Partial support
  4. ◐ 17.0 - 26.6: Partial support
  5. ◐ 27: Partial support
  6. ◐ 27.1 - TP: Partial support

Firefox

  1. ❌ 2 - 36: Not supported
  2. ◐ 37 - 61: Partial support
  3. ◐ 62 - 158: Partial support
  4. ◐ 159: Partial support
  5. ◐ 160 - 162: Partial support

Opera

  1. ❌ 9 - 51: Not supported
  2. ◐ 52 - 75: Partial support
  3. ◐ 76 - 134: Partial support
  4. ◐ 135: Partial support

IE

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

Chrome for Android

  1. ◐ 156: Partial support

Safari on iOS

  1. ❌ 3.2 - 11.2: Not supported
  2. ◐ 11.3 - 13.3: Partial support
  3. ◐ 13.4 - 15.8: Partial support
  4. ◐ 16.0: Partial support
  5. ◐ 16.1 - 16.7: Partial support
  6. ✅ 17.0 - 26.6: Supported
  7. ✅ 27.0: Supported
  8. ✅ 27.1 - 27.2: Supported

Samsung Internet

  1. ❌ 4 - 8.2: Not supported
  2. ◐ 9.2 - 14.0: Partial support
  3. ◐ 15.0 - 29: Partial support
  4. ◐ 30: Partial support

Opera Mini

  1. ❌ all: Not supported

Opera Mobile

  1. ❌ 10 - 12.1: Not supported
  2. ◐ 80: Partial support

UC Browser for Android

  1. ◐ 15.5: Partial support

Android Browser

  1. ❌ 2.1 - 4.4.4: Not supported
  2. ◐ 156: Partial support

Firefox for Android

  1. ◐ 159: Partial support

QQ Browser

  1. ◐ 14.9: Partial support

Baidu Browser

  1. ◐ 13.52: Partial support

KaiOS Browser

  1. ◐ 2.5: Partial support
  2. ◐ 3: Partial support
Resources:
Vanishing boxes with display contents