Skip to content

Commit 0a1e21b

Browse files
committed
[css-containment] Paint containment makes the element a stacking context.
1 parent da22c54 commit 0a1e21b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

css-containment/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ Paint Containment</h3>
234234
the contents of the element is clipped to the element's content box,
235235
including both the paint of the descendants and their geometry</span>
236236
2. The element must act as a containing block for absolutely positioned and fixed positioned descendants.
237-
3. The element must be a <a>formatting context</a>.
237+
3. The element must be a <a>stacking context</a>.
238+
4. The element must be a <a>formatting context</a>.
238239

239240
Possible optimizations that can be enabled by <a>paint containment</a> include (but are not limited to):
240241

@@ -251,4 +252,5 @@ Paint Containment</h3>
251252
so there's something to see as soon as the scroll happens,
252253
rather than a frame later.)
253254

254-
255+
3. Because they are guaranteed to be stacking contexts,
256+
scrolling elements can be painted into a single GPU layer.

0 commit comments

Comments
 (0)