css-scoper-prince

0.0.1 • Public • Published

Scoper

A polyfill for scoped HTML style elements, updated to work with Prince.

Quick Start

Just include scoper.js on your page to start using scoped HTML style elements.

How It Works

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

Tests can be run with the command mocha test/test.js.

Package Sidebar

Install

npm i css-scoper-prince

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

9.25 kB

Total Files

5

Last publish

Collaborators

  • mdarens