Is there a CSS rule that would match elements based on their width? If not, would it be interesting to propose that in the standard?
One could do something like
It is not possible to do it using CSS3, but you can use Element Queries. Check this library: https://elementqueries.com
Here is an example:
@element code and (max-width: 200px) { :self { white-space: nowrap; } }