Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bradkemper opened this issue Jul 23, 2020 · 5 comments
Closed
Labels
⚠️ Needs algorithm ⚠️ Needs JS Needs JS to calculate this stat ⚠️ Needs SQL Needs SQL to calculate this stat proposed stat Proposed statistic to study Section: Browser support

Comments

@bradkemper
Copy link

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 LeaVerou added proposed stat Proposed statistic to study Section: Browser support labels Jul 23, 2020
@LeaVerou LeaVerou added ⚠️ Needs SQL Needs SQL to calculate this stat ⚠️ Needs JS Needs JS to calculate this stat ⚠️ Needs algorithm labels Aug 4, 2020
@LeaVerou
Copy link
Owner

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
Copy link
Owner

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

@LeaVerou LeaVerou added this to New in Almanac 2020 Aug 22, 2020
@bradkemper
Copy link
Author

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
Copy link
Collaborator

@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
Copy link
Owner

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

  • We're running late, and this doesn't even have a clear algorithm yet of what we're measuring and how, only a URL. It would be a tremendous effort to measure all hacks in that URL.
  • Most importantly, many of them are not even parseable by Rework, making analysis impossible. If we restrict analysis to those which are valid CSS, then the statistic becomes less interesting, while still being very time consuming to calculate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ Needs algorithm ⚠️ Needs JS Needs JS to calculate this stat ⚠️ Needs SQL Needs SQL to calculate this stat proposed stat Proposed statistic to study Section: Browser support
Projects
Development

No branches or pull requests

3 participants