LeaVerou / prefixfree

Break free from CSS prefix hell!
http://projects.verou.me/prefixfree/
MIT License
3.83k stars 712 forks source link

Add a license file #6123

Closed pygy closed 7 years ago

pygy commented 7 years ago

There are various statements of intent in the code base, but no proper license AFAICT.

pygy commented 7 years ago

I didn't add it to the Bower ignore list because it makes sense to distribute it along with the code.

LeaVerou commented 7 years ago

Oops, I added a LICENSE file before seeing this, sorry! In any case, there is a license file now. :)

pygy commented 7 years ago

Great, thanks :-)

pygy commented 7 years ago

FYI, I needed this because I've written a prefixer based on PrefixFree for my CSS in JS lib. I initially intended to extract source parts and build around them, but it was too rigid so I ended up refactoring it manually.

Unlike Prefixfree which operates on full CSS source with regexps, the plugin works on a structured data stream of selectors, declarations and at-rules, and different data structures were needed.

On top of the PrefixFree feature set, it also fixes flexbox (as much as possible), @media (resolution: 2dppx) and a few extra selectors. The first two would be hard to backport without adding additional Regexp passes, but the extra selectors could be added with minor modifications (::placeholder maps to 4 different prefixed syntaxes), I can send a PR if you're interested.

I wanted to send a warm "thank you" for your work on Prefixfree. The detection techniques you've pioneered and validated were plundered almost as-is. I wouldn't have known where to begin if I hadn't had your code to rely on.