DEV Community

Discussion on: What is the future of CSS?

Collapse
 
alohci profile image
Nicholas Stimpson • Edited

One thing I read recently that amazed me:

Set the left margin to be 1/10 of the widow[sic] width, but always more than 2em and less than 20em:

html : margin.left = 2em < WIDTH/10 < 20em

From: w3.org/Style/CSS/draft1.html#arith...

This is a proto- clamp()! In the very first draft of CSS in May 1995. Before declaration blocks had even been invented, or CSS syntax had been established.