Testing CSS using insertRule

Hello world!
Destination container

The Hello world above should have a green background which was added using insertRule.

Shutterbug handles this case by serializing the rules of the stylesheets on the page like this: document.styleSheets[1].cssRules[0].cssText

When insertRule is used the text inside the style element remains unchanged so cloning that element will not capture the dyanmically added styles.