A polyfill for scoped HTML style elements, updated to work with Prince.
Just include scoper.js
on your page to start using scoped HTML style elements.
Each <style scoped>
element's parent is given a unique ID. Its rules are moved to head
and all selectors prepended with their respective ID.
Scoper is only active when the page contains scoped styles and the browser doesn't support them.
Tests can be run with the command mocha test/test.js
.