Skip to content

minified/concatenated CSS is forced with media="screen" #4

Open
@aurmil

Description

@aurmil

when using this module, the CSS is included with "media" attribute set to "screen"
this is done in Minify_View_Helper_HeadLink:

$this->prependStylesheet($this->view->url(array('key' => $key), 'minify_css', null, false, false)):
...
$this->prependStylesheet($this->view->url(array('key' => $key), 'concat_css', null, false, false));

so "@media print" styles in the CSS file are useless as they are not considered when printing
you should not assume what the user / dev wants to do and leave the choice or add a way to automatically determine the media type to set (eg: loop on every CSS included and set the less specific type you find)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions