LeaVerou / css-almanac

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

What CSS hacks are still used to target browsers/versions/platforms? #40

Closed bradkemper closed 3 years ago

bradkemper commented 3 years ago

Are authors still using these?Which ones are most prevalent that work with common versions of browsers? If possible to determine, which problems are being solved that can’t be solved with \@supports?

For reference: http://browserhacks.com/

LeaVerou commented 3 years ago

Ok, this highlights a distinction that I believe is generally important for the Almanac. Is "still used" here implying usage in stylesheets written or edited in 2019-2020? Or just stylesheets served in that time period? And if the former, can we make that distinction? @rviscomi?

LeaVerou commented 3 years ago

Apart from that, we need to narrow down the list of hacks that a) we want to measure and b) we can measure

bradkemper commented 3 years ago

Maybe both, separately, but the most recent couple of years especially.

Personally, I'm not interested in those that target IE < 11. I am interested in those that target IE11, those that differentiate between IE and Edge and Chromium Edge (if such yet exist), and those that are used in versions of Safari, Firefox, and Chrome that are post-@-supports.

rviscomi commented 3 years ago

@LeaVerou there may be heuristics to reason about a stylesheet's freshness like Last-Modified or the presence of the resource in an earlier crawl, but I wouldn't rely on those for any meaningful conclusions. I think serving the resource today itself is a meaningful signal and the chapter can discuss possible explanations like staleness/hackyness as needed without necessarily having to prove which it is.

LeaVerou commented 3 years ago

I'm afraid we need to let this one go in favor of the other metrics.