Layouts

Render (Content-Visibility)

Utilities for sets skip rendering if element is off-screen to improve overall page rendering speed.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
render-autocontent-visibility: auto
render-auto-widestcontent-visibility: auto;
contain-intrinsic-size: 1000px
render-auto-widecontent-visibility: auto;
contain-intrinsic-size: 800px
render-auto-normalcontent-visibility: auto;
contain-intrinsic-size: 600px
render-auto-tightcontent-visibility: auto;
contain-intrinsic-size: 400px
render-auto-tighercontent-visibility: auto;
contain-intrinsic-size: 200px
render-hidden-widestcontent-visibility: hidden;
contain-intrinsic-size: 1000px
render-hidden-widecontent-visibility: hidden;
contain-intrinsic-size: 800px
render-hidden-normalcontent-visibility: hidden;
contain-intrinsic-size: 600px
render-hidden-tightcontent-visibility: hidden;
contain-intrinsic-size: 400px
render-hidden-tighercontent-visibility: hidden;
contain-intrinsic-size: 200px

Usage

Set maximum height and width for the browser to start to render an element.

<div class="render-auto-widest">
...
</div>
HTML
.dummy {
@extend
.render-auto-widest;
}
SCSS