InlineStyle icon indicating copy to clipboard operation
InlineStyle copied to clipboard

Media attribute in style tags ignored

Open madleech opened this issue 11 years ago • 0 comments

InlineStyle doesn't appear to respect the media attribute in <style> tags, meaning that print stylesheets get processed and included beside regular stylesheets.

This issue only came to light for us once #28 was fixed, as our print stylesheets always come after our usual screen orientated stylesheets.

Example HTML:

<style type="text/css" media="print">
    #header {
        display:none;
    }
</style>

It would be good if InlineStyle only processed screen and global stylesheets.

madleech avatar May 20 '14 00:05 madleech