CSS Containment This box and children are independent from the rest of the layout.
Slide 33
.sidebar { contain: layout; }
Slide 34
Container Queries Design components that can react to the available space in their container.
Slide 35
Slide 36
Try out Container Queries In chrome://flags enable “CSS Container Queries”.
Slide 37
.sidebar { container-type: inline-size; }
Slide 38
Using container-type creates a containment context. This also turns on layout, style, and inline-size containment, in the same way as using the contain property does.