3 ms·
I don't think this person actually worked with CSS in the early days. The clearfix trick was back then, not now. It was back "in the day" that we had to do shit
by monkeynotes 3y ago
I don't think this person actually worked with CSS in the early days. The clearfix trick was back then, not now. It was back "in the day" that we had to do shitty workarounds like clearfix. Like CSS wasn't fun back then, at all. CSS wasn't fun, then not fun, and now fun again. CSS has been on a steady trajectory out of awful but it works, to predictability, and much more fit for purpose. React and the like have allowed for tight namespacing which makes collisions a thing of the past, and so the "cascading" element is less of a problem.
- chris_wot 3y agoI thought he was saying it was a cheap trick? “Tricks like clearfixes arose; bits of knowledge you just had to find and use, and then apply like cheap plaster in a house you intend to flip.”
- paradox460 3y agoIndeed I was. No one actually liked clearfix, but we had to do it. It was the bit of plaster smeared over the hole the door knob punched in the wall. A necessity, but not a nice one
- monkeynotes 3y agoBut CSS isn't "fun again" if it wasn't fun before. And it certainly was not fun before, it was a horrible nightmare of non-standard implementation and an ill fit for what designers wanted to do.
- paradox460 3y agoIt was fun compared to table and sizer gifs