li { background-color: color-mix(in srgb, #34c9eb 10%, white); }
Slide 9
Try out color-mix() In Safari Technology Preview enable CSS color-mix() in the develop menu In Firefox, in about:config enable layout.css.color-mix.enabled
Slide 10
Solving font layout shifts size-adjust, ascent-override, descent-override, line-gap-override
CSS Containment This box and children are independent from the rest of the layout.
Slide 25
.sidebar { contain: layout; }
Slide 26
Use the contain property now!
• Chrome ✅ • Edge ✅ • Firefox ✅
Slide 27
Container Queries Design components that can react to the available space in their container.
Slide 28
Slide 29
Try out Container Queries In chrome://flags enable “CSS Container Queries”.
Slide 30
.sidebar { container-type: inline-size; }
Slide 31
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.