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

Stylesheet link is media screen instead of all #1644

scottkellum opened this Issue Apr 3, 2014 · 1 comment


None yet
3 participants

scottkellum commented Apr 3, 2014

via middleman/middleman#1240

When linking stylesheets like so:

<%= stylesheet_link_tag "main" %>

The resulting HTML is:

<link href="/stylesheets/main-e6a8fe78.css" media="screen" rel="stylesheet" type="text/css">

The resulting HTML should be:

<link href="/stylesheets/main-e6a8fe78.css" rel="stylesheet" type="text/css">

The result is that printed media does not pick up default styles. The screen media tag is dangerous because the spec indicates that TVs, handhelds, and projection won’t pick up these styles either. In practice only print styles fail because screen is so widely misused and TV/handhelds/projection are hard to test for.

@ujifgc ujifgc added question labels Apr 4, 2014

@namusyaka namusyaka closed this in 3a03f54 Apr 4, 2014


This comment has been minimized.

Show comment
Hide comment

namusyaka Apr 4, 2014


Thanks! You're right, fixed 3a03f54


namusyaka commented Apr 4, 2014

Thanks! You're right, fixed 3a03f54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment