The Angry Robot Zombie Factory

We build the robots, they make the apps.

jQuery Scoped Styles regressively enhances your pages

Scoped Styles is a jQuery plugin polyfill which enables the scoped attribute on style blocks.

It’s difficult to push the boundaries of web development when not all browsers support the same features. The Modernizr project has been collecting javascript plugins which enable new functionality in older browsers. Include this plugin in your page and you will be able to use the new ‘scoped’ attribute on style blocks. This will limit the styles listed to the block’s parent node and its parent’s children. Useful if you need it. Unnecessary if you don’t.

There’s a demo available here and the source is available on github.

jQuery Scoped Styles

Robots used to build jQuery Scoped Styles:

An Angry Robot Zombie