Jason Knight
Dec 1, 2021

--

Honestly if you have to @screen in your stylesheet, there's something wrong with your LINK tag.

But then that seems to be painfully commonplace these days, what with all the sample code from the dumbass framework trash being utterly devoid of setting media="screen".

That said, yeah. I had the lack of a viewport META crop up and bite me a while back when I trued to copy a demo I wrote to codePen.

I'd also suggest adding height=device-height as a few older Android devices -- like my Icoo tablet -- incorrectly applies the "lie height" as width in landscape. It's a rare occurrence these days, but when it happens it can drive you nuts as to "what the devil's going on?!?".

I hate stupid little corner cases.

--

--

Jason Knight
Jason Knight

Written by Jason Knight

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse

No responses yet