Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
CSS Object Model implemented in pure JavaScript. It's also a parser!
JavaScript
tag: v0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
README.mdown

README.mdown

CSSOM

CSSOM.js is a pure JavaScript parser and a partial implementation of CSS Object Model.

var CSSOM = require("CSSOM");
CSSOM.parse("body {color: black}")
-> {
        cssRules: [
            {
                selectorText: "body",
                style: {
                    0: "color",
                    color: "black",
                    length: 1
                }
            }
        ]
    }

Tests

Something went wrong with that request. Please try again.