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

Clean up browser hacks that are no longer necessary #10202

Merged
merged 2 commits into from
Dec 16, 2020
Merged

Conversation

mourner
Copy link
Member

@mourner mourner commented Dec 14, 2020

This PR removes some hacks (mostly CSS prefixes) that are no longer necessary — either because of dropping IE 11, or because the corresponding browsers didn't need them for years. Specifically, here are the dates for browsers supporting non-hacky version that I pulled from MDN:

  • animation
    • Chrome - 2015
    • Firefox - 2012
    • Safari - 2015
  • grab/grabbing cursor
    • Chrome - July 2018
    • Firefox - 2014
  • flex
    • Chrome - 2013
    • Safari - 2015
  • align-self
    • Chrome - 2014
    • Safari - 2015
  • user-select
    • Firefox - 2016 (webkit-prefixed)
  • transform
    • Chrome - 2014
    • Safari - 2015
  • requestAnimationFrame
    • Chrome - 2013
    • Firefox - 2013
    • Safari - 2014

I left hacks that may still be relevant (e.g. -webkit-user-select, -webkit-full-screen, -ms-high-contrast).

Launch Checklist

  • briefly describe the changes in this PR
  • manually test the debug page
  • apply changelog label ('bug', 'feature', 'docs', etc) or use the label 'skip changelog'

@mourner mourner added the skip changelog Used for PRs that do not need a changelog entry label Dec 14, 2020
@mourner mourner self-assigned this Dec 14, 2020
Copy link
Contributor

@ryanhamley ryanhamley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thanks for cleaning this up

@mourner mourner merged commit 2fd29de into main Dec 16, 2020
@mourner mourner deleted the cleanup-prefixes branch December 16, 2020 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog Used for PRs that do not need a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants