LeaVerou / prefixfree

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

trigger a custom event 'StyleFixProcessed' #6134

Closed joyously closed 6 years ago

joyously commented 6 years ago

Add a custom event 'StyleFixProcessed' to indicate when the styles are fixed. This is needed for situations that entail further processing, such as described in #6132

LeaVerou commented 6 years ago

What about when there are multiple stylesheets, and multiple StyleFix rules? Do you fire one or more events? If one, does it fire correctly at the end?

Also, it seems you accidentally included some other changes in this PR?

joyously commented 6 years ago

The event is for when all of the process function is finished, which is after handling the multiple stylesheets and rules. And the other changes are intentional. The event is needed for the fallback fix that I included.

LeaVerou commented 6 years ago

Merged, thanks. Should I close the other PR then?

joyously commented 6 years ago

Yes