← You reach for Sass to mix colors. `color-mix()` does it natively.Quiz

color-mix() — native CSS color blending

For years, blending or shading a color in CSS meant reaching for Sass. color-mix() does it natively: two colors, a ratio, and a color space, resolved by the browser at runtime. These questions check the ratio semantics, why the color space argument changes the result, how it maps onto the old Sass functions, and how it degrades in older browsers.

questions7
pass mark70%
feedbackinstant

No account needed. Every answer is explained as you go, with a reference to the spec or MDN — pass and you can claim a certificate.