lifting stylesheets from element to document.head