Skip to content

Media attribute in style tags ignored  #31

@madleech

Description

@madleech

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions