Today I'm very pleased to be releasing something I've been working on for nearly six months! CSSUtilities is a JavaScript library that provides a set of unique and indispensible methods for querying CSS style sheets, such as listing all the rules that apply to an element, telling you the properties it inherits, or the media they apply to, or the specificity of any selector. CSSUtilities is even more accurate and detailed than Firebug! (Seriously!) Yet it's available to ordinary, unprivileged code that runs in any contemporary browser. CSSUtilities can provide data which is impossible to derive with built-in query methods, and way beyond the scope of general-purpose libraries, which is no surprise really - to provide this level of data a library would have to essentially implement a complete CSS parser ... everything but the rendering. And that's exactly what I've done here ...
↧