hoebbelsB / css-contain-research

Created with StackBlitz ⚡️

Home Page:https://stackblitz.com/edit/animations-js-vs-css-animatins-css-performance-ex-vt32gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

contain and content-visibility - performance audit

css-performance_contain--content-visibility_michael-hladky

Measures

Comparison

Value Impact Usage Layout Root Overflow Dimensions Description
none n/a n/a document visible optional Default value with no effect
size ~ -- document visible required Geometry calcualtions are done without children. Without h/w the box collapses.
layout + ++ node visible optional Protect area against layout and vice versa, offscreen paint protection [1]
paint + + node hidden optional Same as layout, offscreen paint protection [1]
content ++ + node hidden optional Shorthand for layout paint
strict +++ -- node hidden required Shorthand for layout paint size

1 offscreen improvements

Can I Use

caniuse-contain

caniuse-content-visibility

Documentation

About

Created with StackBlitz ⚡️

https://stackblitz.com/edit/animations-js-vs-css-animatins-css-performance-ex-vt32gg


Languages

Language:CSS 62.2%Language:JavaScript 25.2%Language:HTML 12.7%