@@ -1133,9 +1133,17 @@ Possible Paint-Containment Optimizations</h4>
1133
1133
Possible optimizations that can be enabled by <a>paint containment</a> include (but are not limited to):
1134
1134
1135
1135
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,
1137
1137
as they're guaranteed to be off-screen/obscured as well.
1138
1138
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
+
1139
1147
2. Unless the clipped content is made accessible via a separate mechanism
1140
1148
such as the 'overflow' , 'resize' , or 'text-overflow' properties,
1141
1149
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
1982
1990
* Clarify that scrollIntoView() doesn't scroll to children of a ''content-visibility:hidden'' element
1983
1991
* Defined that elements having an ancestor with ''content-visibility: hidden'' don't generate boxes in the top layer
1984
1992
* 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.
1985
1994
1986
1995
<h3 id="changes-since-2020-06-03">
1987
1996
Changes from <a href="https://www.w3.org/TR/2020/WD-css-contain-2-20200603/">2020-06-03 Working Draft</a>
0 commit comments