Skip to content
Polyfill for CSS Nesting.
JavaScript PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
build
src
test
README.markdown
build_config.json

README.markdown

Nesting.js

Nesting.js is a pollyfill designed to allow you to use nesting in CSS now with no pre processing required. Just include the script, and you're done.

At the moment, this is, and should be considered, a proof of concept. In NO situation should you EVER be using this on a production site. Has not been tested outside of Chrome 19, at all. Preformance on mobile is probably killer, and chances are, it could explode your computer in Internet Explorer.

Restrictions

  • Preformance is probably terrible.
  • Nesting doesn't work within media queries, but it doesn't break nesting elsewhere in the document.
  • Selector lists do not work.

Features

  • Only the extreme basics of nesting is supported.
  • Based on the syntax proposed here

Note

Don't use this.

Something went wrong with that request. Please try again.