HTML & CSS · Senior · Question 56 of 75
What does color: light-dark(#111, #eee) do?
- ✓Correct answer: Picks the first value in a light color scheme and the second in a dark one
- 2Blends the two colors
- 3Picks a color based on the background brightness
Explanation
It requires color-scheme: light dark (or a specific scheme) on the element or root. It reduces the number of duplicated variable definitions in media queries.