Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media attribute in style tags ignored #31

Open
madleech opened this issue May 20, 2014 · 0 comments
Open

Media attribute in style tags ignored #31

madleech opened this issue May 20, 2014 · 0 comments

Comments

@madleech
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant