![]() ![]() The contain property allows an author to indicate that an element and its contents are,Īs much as possible, independent of the rest of the document tree. User agents are expected to support this property on all media, including non-visual ones. Strong Containment: the contain property Name:Ĭontain Value: none | strict | content | Ĭomputed value: the keyword none or one or more of size, layout, paint Canonical order: per grammar In addition to the property-specific values listed in their definitions,Īll properties defined in this specificationĪlso accept the CSS-wide keywords as their property value.įor readability they have not been repeated explicitly. Ĭombination with other CSS modules may expand the definitions of these value types. Value types not defined in this specification are defined in CSS Values & Units. This specification follows the CSS property definition conventions from using the value definition syntax from. In addition, it aims to replace and supersede once stable. This document defines new features not present in earlier specifications. This spec also defines a content-visibility property,Įnabling the user agent to skip an element’s layout and painting entirely when not needed. To allow even further optimization of off-screen contents, This specification defines a contain property. There are also many things that would be good to isolate which are difficult or impossible to detect in a heuristic manner.Īnd allow strong, predictable isolation of a subtree from the rest of the page, So innocuous changes to a page may inadvertently make it fail such heuristic tests,Ĭausing rendering to fall into a slow code path. There are various heuristics that can be used to guess when a given sub-tree is independent of the rest of the page in some manner, Which parts might affect the currently-displayed section, Implementations of Unstable and Proprietary FeaturesĮfficiently rendering a website relies on the user agent being able to detect what parts of the page are being displayed,.4.3 Detecting content-visibility: auto state changes: the contentvisibilityautostatechanged event.4 Suppressing An Element’s Contents Entirely: the content-visibility property.2 Strong Containment: the contain property.That page also includes instructions for disclosing a patent.Īn individual who has actual knowledge of a patent which the individual believesĬontains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group This document was produced by a group operating under the W3C Patent Policy. ![]() Including the spec code “css-contain” in the title, like this:Īlternately, feedback can be sent to the ( archived) public mailing list document is governed by the 2 November 2021 W3C Process Document. It is inappropriate to cite this document as other than work in progress. Or obsoleted by other documents at any time. īy the CSS Working Group as a Working Draft using the Recommendationĭoes not imply endorsement by W3C and its Members. This section describes the status of this document at the time of its publication.Īnd the latest revision of this technical reportĬan be found in the W3C technical reports index at.
0 Comments
Leave a Reply. |