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

Stylesheet link is media screen instead of all #1644

Closed
scottkellum opened this issue Apr 3, 2014 · 1 comment
Closed

Stylesheet link is media screen instead of all #1644

scottkellum opened this issue Apr 3, 2014 · 1 comment

Comments

@scottkellum
Copy link

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.

@namusyaka
Copy link
Contributor

Thanks! You're right, fixed 3a03f54

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

No branches or pull requests

3 participants