You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # JSS plugin that handles vendor prefixes in the browser
  2. [![Gitter](https://badges.gitter.im/JoinChat.svg)](https://gitter.im/cssinjs/lobby)
  3. This vendor prefixer knows which properties and values are supported in the
  4. current runtime and changes only whats required.
  5. The best thing is - you don't need to download all of them.
  6. Also it is very fast, all checks are cached.
  7. Make sure you read [how to use
  8. plugins](https://github.com/cssinjs/jss/blob/master/docs/setup.md#setup-with-plugins)
  9. in general.
  10. ## Example
  11. ```javascript
  12. const styles = {
  13. container: {
  14. transform: 'translateX(100px)'
  15. }
  16. }
  17. ```
  18. Compiles to:
  19. ```css
  20. .jss-0-0 {
  21. transform: -webkit-translateX(100px);
  22. }
  23. ```
  24. ## Issues
  25. File a bug against [cssinjs/jss prefixed with \[jss-vendor-prefixer\]](https://github.com/cssinjs/jss/issues/new?title=[jss-vendor-prefixer]%20).
  26. ## Run tests
  27. ```bash
  28. npm i
  29. npm run test
  30. ```
  31. ## License
  32. MIT