CSS content-visibility Property

Beginner
3 examples
Updated: Nov 2026

Definition and Usage

The content-visibility property lets the browser skip rendering work for content that is not needed yet. auto is the common choice for long documents.

CSS Syntax

syntax.css
.section {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

Property Values

ValueEffectTry it
visibleNormal renderingTry it
autoSkip rendering when off-screen if safeTry it
hiddenSkip rendering and make inaccessibleTry it

CSS Examples

Basic use

example.css
.section {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}
Try It Yourself

Browser Support

content-visibility is a CSS property.

✓ CSS

content-visibility

Check support for your audience.

92% Modern browsers
Google Chrome Recent
Full support
Mozilla Firefox Recent
Full support
Apple Safari Recent
Full support
Microsoft Edge Recent
Full support
content-visibility Modern support

Bottom line: Prefer progressive enhancement when support varies.

Frequently Asked Questions

The content-visibility property lets the browser skip rendering work for content that is not needed yet. auto is the common choice for long documents.
Use it with progressive enhancement and check current browsers for edge cases.
Read the definition, try the first example, then compare related properties.
Sometimes. Prefer modern properties when browser support meets your audience.
Open the Try it demos and change one value at a time.

Next: counter-increment

Continue with mask.

counter-increment →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

3 people found this page helpful