LeaVerou / css-almanac

Repo for planning & voting on which stats to study
https://projects.verou.me/mavoice/?repo=leaverou/css-almanac&labels=proposed%20stat
34 stars 3 forks source link

Clearfix stats #12

Closed LeaVerou closed 4 years ago

LeaVerou commented 4 years ago

Are .clearfix, .clear or .cf still popular? How popular considering the current flexbox and grid usage?

(by @catalinred)

LeaVerou commented 4 years ago

I suspect this doesn't really show us much about current flexbox and grid usage, just how many stylesheets have been lingering from the olden times. But I guess this is a general point that applies to all stats.

@catalinred do you think it would be sufficient to just measure usage of specific classes like the ones you listed, or should we dynamically infer them based on the stylesheet? The upside of looking for specific class names is that we take all different clearfix methods into account without having to explicitly account for them (also, much simpler), the downside is that we miss custom ones.

LeaVerou commented 4 years ago

What are we really trying to measure here? Essentially we're measuring usage of floats by proxy, it's not that clearfix by itself is interesting. However, usage of floats is measured in #14. So, unless there's any objection, I'm going to close this.