@@ -1133,9 +1133,17 @@ Possible Paint-Containment Optimizations</h4>
11331133 Possible optimizations that can be enabled by <a>paint containment</a> include (but are not limited to):
11341134
11351135 1. If the [=paint containment box|containment box=] is off-screen or obscured,
1136- the UA can directly skip trying to paint its contents,
1136+ the UA can usually skip trying to paint its contents,
11371137 as they're guaranteed to be off-screen/obscured as well.
11381138
1139+ Note: Some paint effects such as the ''blur()'' filter from [[FILTER-EFFECTS-1]]
1140+ have non local effects.
1141+ The user agent needs to keep track of these,
1142+ as it may need to repaint parts of an element with such a filter
1143+ when its descendents change,
1144+ even if they have [=paint containment=]
1145+ and could otherwise be skipped.
1146+
11391147 2. Unless the clipped content is made accessible via a separate mechanism
11401148 such as the 'overflow' , 'resize' , or 'text-overflow' properties,
11411149 the UA can reserve "canvas" space for the box exactly the box's size.
@@ -1982,6 +1990,7 @@ Changes from <a href="https://www.w3.org/TR/2020/WD-css-contain-2-20201216/">202
19821990* Clarify that scrollIntoView() doesn't scroll to children of a ''content-visibility:hidden'' element
19831991* Defined that elements having an ancestor with ''content-visibility: hidden'' don't generate boxes in the top layer
19841992* Defined that being in the top-layer makes an element relevant to the user
1993+ * Noted that paint effects with non-local effects can limit certain optimization opportunities.
19851994
19861995<h3 id="changes-since-2020-06-03">
19871996Changes from <a href="https://www.w3.org/TR/2020/WD-css-contain-2-20200603/">2020-06-03 Working Draft</a>
0 commit comments