JSPM

css-legacy-browsers

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q17364F

CSS legacy browser detection and styling features testing

Package Exports

  • css-legacy-browsers

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (css-legacy-browsers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

css-legacy-browsers

CSS legacy browser support detection and property testing. Provides a list of proprietary legacy browser properties that can be matched to current styles (ie: display: flex ---> display: -ms-flexbox)

uses

var cssLegacyBrowsers = require('css-legacy-browsers')

console.log(cssLegacyBrowsers.supportedStyles('display', 'flex')) //in IE10 returns {property: 'display', value: '-ms-flexbox'} 

Tests if value and property are supported on current browser, returns new property/value object if supported, returns false if not supported

Legacy Browsers currently supported

  • IE10 (-ms-)
  • Mozzila Firefox Gecko (-moz-)
    ...more to come

License

MIT