New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-fixes

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-fixes

PostCSS plugin to fix known Browser Bugs. Is 'safe' by default and therefore won't make any undesired changes to your CSS.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
712
decreased by-8.83%
Maintainers
1
Weekly downloads
 
Created
Source

PostCSS Fixes Build Status

PostCSS pack to fix known Browser Bugs, making it easier to write your CSS according to the official W3C Syntax.

postcss-fixes differs from cssnext by doing only transformations for stable CSS Features, whereas cssnext is more progressively tries to implement features, which aren't official W3C recommendations yet and could therefore change/break in the future. Another alternative is oldie, which is Internet Explorer only, however.

Used Plugins

Hint: An opinionated config for these plugins is used, to make them more future-safe

Example (many more transformations)

::before {
    flex: 1;
    opacity: .5;
    height: 2.5rem;
}
:before {
    flex: 1 1 0%; /* fix some flexbox issues */
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* opacity for IE */
    opacity: .5;
    height: 40px; /* rem to px fallback */
    height: 2.5rem;
}

Usage

postcss([ require('postcss-fixes') ]) // do recommended transformations
postcss([ require('postcss-fixes')({ mode: 'safe' }) ]) // do only very safe transformations

See PostCSS docs for examples for your environment.

Keywords

FAQs

Package last updated on 14 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc