Live CSSOM Viewer

Style sheet to test (, hide, )

CSSOM View (hide, )

    cssText view (hide)

    Rendered document view (hide, as data:, as about:, as javascript:)

    Document fragment to test (hide, )

    Log (hide)

    
    

    This script puts functions into the global scope of the test page. w (s) outputs string s to the log. ss () returns the CSSStyleSheet object (it is useless in style="" mode). sd () returns the first CSSStyleDeclaration object in document order (if any). u () updates the CSSOM view as well as the cssText view.

    Also, files image.png (a PNG image) and style.css (a CSS style sheet) are accessible in the current directory.