Gratitude For a Web That Tries Not to Break
Chris wrote a response to my wondering-out-loud remarks about whether logical properties make CSS easier to learn.
His response is great. And his tabular comparison of properties is short and concise and punchy in the way only Chris Coyier can reason about CSS.
His post actually got me thinking about something different than logical properties, so now Iām gonna do some more thinking-as-I-type. From his post:
because the logical properties donāt replace the non-logical versions and that there are still reasons to use the non-logical versions, thus only expanding the languageā¦well, I can cede that makes CSS as a whole perhaps a smidge harder to learn. š¬
This made me wonder: how long will we really keep every feature of CSS?
I love the webās guiding principle around compatibility: ādonāt break the webā.
Even if a change would be convenient for developers, it's not worth it if we hurt lots of users in the process!
In a world awash with software whose shelf life approximates that of my grocery store milk, I love that there is no semver to worry about on the web ā HTML5, CSS3, ES6, these are not major breaking changes.
For CSS in particular, Iāve seen many welcome new features that supersede their predecessors: float-based layouts over table layouts, then flex over floats, then the introduction of grid. So many great ways to layout a website!
However, as Chris points out, all of those features are a accretion to the language. āDonāt break the webā means we donāt have to worry about reading CSS release notes like, āšØ Breaking changes: float
has been replaced by flex
. You must upgrade to newest version.ā
But how long can we reasonably go without removing the old? How viable is this approach over time? 100 years from now, will people still be able to write float
in their CSS?
I donāt know how the web will evolve over time to deal with what ā I assume? ā will inevitably become a problem of incomprehensible complexity resulting from decades of language accretion (like stalagmites in a cave).
What this makes me realize is: Iām lucky. I donāt know what things will look like 100 years from now ā Iām sure weāll adapt ā but I am grateful to have lived my entire life in an era where people strive to (and make it feasible to) not break the web.