Do we need to have media=screen?


(Thomas Smyth) #1

Is there any reason the main stylesheet link tag has to have media="screen" explicitly? In my plugin, I have a simple page that I want to print and I’ve added my own media query to hide the stuff I want to hide, etc., but because the main link tag has media=“screen” then all my styles are gone so the page looks like crap and my media queries are gone too. If I remove media=“screen” using the inspector then it works fine. Thoughts?


(Jeff Atwood) #2

Any thoughts @awesomerobot?


(Kris) #3

Ah, so you’re trying to carry over screen styles to print?

I think we can change it to media="all", it’s the default in HTML5 so that’s what you’re seeing if you remove media="screen". It’s not like we have separate print/braille/tty styles anyway - so the screen specification isn’t necessary.

I’ll push a change today at some point.


(Thomas Smyth) #4

This is awesome, thank you!