Web platform features explorer

Style containment

The contain: style CSS declaration permits the browser to avoid slower layout calculations by preventing modification to counter (counter-increment and counter-set) and quotation styles (content property quote values) beyond the element's descendants.

Status

Baseline Widely Available (since 2025-01-26)

MDN documentation

Browser support

  • Chrome 52 Released on 2016-07-20
  • Chrome Android 52 Released on 2016-07-27
  • Edge 79 Released on 2020-01-15
  • Firefox 103 Released on 2022-07-26
  • Firefox for Android 103 Released on 2022-07-26
  • Safari 15.4 Released on 2022-03-14
  • Safari on iOS 15.4 Released on 2022-03-14