Skip to main content
MybringDesign System

Browser support

Writing for and testing in browsers

Our task is to build applications for the web, not to target individual devices or specific browser versions.

Principles

  1. Write modern code that runs in modern browsers.
  2. Test in various browsers.
  3. When browser-specific bugs occur, evaluate and discuss if they should be fixed.
  4. Be pragmatic about details, it’s not in the UI’s nature to look identical across all browsers.

Browserslist recommendation

Tools like Autoprefixer, Babel etc. will share the same Browserslist setting when you add it to package.json. For production, it is recommended to base the list on usage above a certain percentage and combine it with specific browsers beyond that. This will drop browsers that dies or fall below the given percentage – and keep those that live on. A “last x version” option is not recommended, as it is less adaptable and not usage based.

Minimum recommendation:

"browserslist": [
  "> .2%",
  "ie not > 0"
]

Resources