CSS WG Blog Updated CSS Containment Level 2 Working Dr…

This is a page from the Cascading Style Sheets Working Group Blog. Some other places to find information are the “current work” page, the www-style mailing list, the Future of CSS syndicator, and the issue list on Github.

Do you want to know how the CSS WG works? Fantasai has written about:csswg, An Inside View of the CSS Working Group at W3C.

Updated CSS Containment Level 2 Working Draft

By Florian Rivoal June 5, 2020 (Permalink)
Categories: publications

The CSS Working Group has published an updated Working Draft of the CSS Containment Module Level 2. This CSS module describes the contain property, which indicates that the element’s subtree is independent of the rest of the page, and the related and content-visibility property. This enables heavy optimizations by user agents when used well.

The main changes brought by this update are defining the interaction between paint containment and the newly introduced overflow-clip-margin, and adding the content-visibility property. The content-visibility property controls whether or not an element renders its contents at all, along with forcing a strong set of containments, allowing user agents to potentially omit large swathes of layout and rendering work until it becomes needed.

See also the Changes section for further details.

Please send feedback by either filing an issue in GitHub (preferable) or sending mail to the (archived) public mailing list www-style@w3.org with the spec code ([css-contain-2]) and your comment topic in the subject line. (Alternatively, you can email one of the editors and ask them to forward your comment.)

« Previous article Next article »

[Photo: group photo of the CSS working group in San Francisco] Contact: Bert Bos
Copyright © 2020 W3C®

Last updated 2020-06-05 02:30:12