Three solutions, one for today and two for tomorrow| nerdy.dev
Registered custom properties are now available in all modern browsers. Using some pre-existing techniques based on them and complex container query length units, I solved a years-long problem of fitting text to the width of a container, hopefully paving the path towards a proper native implementation.| kizu.dev
1. Introduction| drafts.csswg.org
Media queries are nice, but for many things, we don’t even need them: there is this great CSS property `color-scheme`, which allows us to make various things adapt to the current color scheme. We can even set it on a per-element basis. This post describes how we can use registered custom properties and style queries to read the current value of a `light-dark()` color for styling any non-color properties as well.| blog.kizu.dev
1. Introduction| drafts.csswg.org
1. Introduction| drafts.css-houdini.org
1. Introduction| drafts.csswg.org
1. Introduction| drafts.csswg.org