prefixfree-1.0.10/ 0000775 0000000 0000000 00000000000 12707504057 0013737 5 ustar 00root root 0000000 0000000 prefixfree-1.0.10/README.md 0000775 0000000 0000000 00000006161 12707504057 0015225 0 ustar 00root root 0000000 0000000 # [-prefix-**free**](http://leaverou.github.com/prefixfree/)
## Break free from CSS prefix hell!
[Project homepage](http://leaverou.github.com/prefixfree/)
A script that lets you 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.
## API Documentation
Note: To use -prefix-free you don't need to write any JS code, just to include prefixfree.js in your page. The following is meant mostly for plugin authors.
-prefix-free creates 2 global variables: `StyleFix` and `PrefixFree`. StyleFix is a framework for building various CSS fixers and -prefix-free depends on it. Currently, StyleFix is bundled with -prefix-free and only available this way, but it might eventually get split to a separate project, with separate documentation.
## StyleFix API Documentation
### Properties
StyleFix.fixers
An array of the current callbacks.
### Functions
StyleFix.register(callback)
Adds `callback` to the queue of functions that will be called when fixing CSS code. `callback` will be called with the following parameters:
* **css** (String): The CSS code that is being processed,
* **raw** (Boolean): Whether the CSS code can contain rules etc or it's just a bunch of declarations (such as the ones found in the `style` attribute),
* **element** (HTMLElement): The node that the CSS code came from (such as a `` element, a `