CKTIS / CSS
content-visibility — skipping content rendering
content-visibility controls rendering of an element’s contents. It lets the browser skip work while retaining the element’s own box.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
content-visibility: visible | auto | hidden;content-visibility initially equals visible and is not inherited. visible means normal rendering.
hidden skips contents without removing the element’s box as display: none does. Skipped contents are unavailable to find-in-page, focus, and screen readers.
auto allows skipping contents currently irrelevant to the user while preserving their accessibility. It enables layout, style, and paint containment; skipping adds size containment.
Without explicit dimensions, size can change. The example uses fixed dimensions and hidden so its result does not depend on viewport proximity.
Examples
<!doctype html>
<meta charset="utf-8">
<title>content-visibility</title>
<style>
.panel {
content-visibility: hidden;
width: 240px;
height: 80px;
border: 2px solid black;
background: lightblue;
}
</style>
<div class="panel"><span>CONTENT</span></div>Result
A light-blue box with a black border; CONTENT is not painted.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.