Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Write prefix-free code everywhere!
JavaScript Shell
Branch: master
Pull request Compare This branch is 32 commits ahead, 12 commits behind LeaVerou:gh-pages.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
css
fonts
img
plugins
README.md
index.html
index.js
minify
prefixfree.js
prefixfree.min.js

README.md

-prefix-free

Write prefix-free code everywhere!

-prefix-free enables you to use only unprefixed CSS properties everywhere. It works behind the scenes, adding the current browser’s prefix to any CSS code, only when it’s needed.

To use -prefix-free, simply include prefixfree.min.js at the bottom of the <body> of your page. For example: <script src="prefixfree.min.js"></script>

This is a remix of Lea Verou's excellent original. It exposes no global variables to keep things simple and provides automatic prefixing support for the following:

  • external <link> stylesheets,
  • internal <style> stylesheets,
  • getting/setting element.style.property/getPropertyValue()/setProperty(), etc.
Something went wrong with that request. Please try again.