Socket
Socket
Sign inDemoInstall

stylecow-plugin-fixes

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stylecow-plugin-fixes

Stylecow plugin to fix automatically some css issues.


Version published
Maintainers
1
Install size
134 kB
Created

Readme

Source

stylecow plugin fixer

Build Status

Stylecow plugin to fix automatically some browser issues:

  • Fix the old syntax of 'clip: rect()' in ie < 8
  • Fix the double margin bug in ie6 on float block elements
  • Adds support for min-height in ie<8
  • Adds support for opacity in ie<9
  • Adds support for ::after, ::before, ::first-line, ::first-letter in ie<9
  • Adds support for vmin in ie9
  • Adds support for display:inline-block in ie < 8
  • Adds support for break-before, break-after, break-inside in webkit
  • Add support for resolution media query:
    • Converts all ddpx and dpcm units to dpi (for more compatibility)
    • Converts min/max-resolution to -webkit-min/max-device-pixel-ratio for webkit
  • Fix multiple @charset at-rules
  • Fix @import position that must be on top of the css (only preceded by @charset)
  • etc...

You write:

.foo {
    clip: rect(1, 2, 3, 4);
    min-height: 50px;
    width: 23vmin;
}

And stylecow converts to:

.foo {
    clip: rect(1, 2, 3, 4);
    *clip: rect(1 2 3 4);
    _height: 50px;
    min-height: 50px;
    width: 23vm;
    width: 23vmin;
}

More demos in the tests folder

FAQs

Last updated on 14 Dec 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc