Readit News logoReadit News
overshard · 9 years ago
This is pretty cool for a basic preview but it really doesn't solve the bigger issue of devices handling basic CSS inconsistently in many situations.

Example is sizing things using "vh" and "vw". On iOS this has been, and still is, completely broken. It is "supported" but if you try to size something at "100vh" it will scale multiple views without additional CSS on breakpoints or some JavaScript hacks.

For me this is just a glorified "Responsive Design Mode" which is already built into Chrome and Firefox dev tools.

shakna · 9 years ago
iOS feels like the new IE when it comes to this stuff.

For example:

> iOS 7 Safari recalculates widths set in vh as vw, and heights set in vw as vh, when orientation changes.

If you really want iOS customers to feel at home, a lot of the time you have no option but to specifically target all their screen sizes with media queries.

alwillis · 9 years ago
1. Safari is not the new IE by a long shot: https://webkit.org/status/

2. iOS 7 was released September of 2013; that's ancient history in the iOS ecosystem

3. the installed base of iOS 10 is a smidge under 80%; iOS 7 is likely around 1%: https://developer.apple.com/support/app-store/

snewk · 9 years ago
responsive design mode is included in safari as well
cocktailpeanuts · 9 years ago
Unless I'm missing something major, the title is false advertisement. I was expecting some sort of next.js/netlify/etc. kind of service (or framework)

But this looks like just a way to try viewing web pages on small screens.

anotheryou · 9 years ago
"A tool for previewing for responsive websites", nothing more, right?
fimdomeio · 9 years ago
I guess so. I would say in any case that it might come handy
anotheryou · 9 years ago
With so many devices I just check iPhones and 1366x768, the rest I don't tailor, just make sure my CSS handles all sizes well (by dragging arround the viewport in the chrome dev tolls device preview thingy)
aphextron · 9 years ago
Slightly unrelated; can some explain "Yarn" to me? What's wrong with NPM? Is this legitimate?
kt9 · 9 years ago
Here's a post that an engineer on my team wrote about why we switched from NPM to Yarn

http://www.blog.distelli.com/single-post/2016/12/14/Why-we-s...

fishnchips · 9 years ago
It's similar to Ruby's Bundler in that it uses a lockfile with a list of exact versions of dependencies. As a result, you get a more deterministic setup. At least that's the main benefit I see here.
borski · 9 years ago
I wish this didn't use iframes, since so many applications set the X-Frame-Options header. That said, if I were using this against my own sites, I suppose I could just not serve that header.
robalfonso · 9 years ago
Exactly - loaded it up with my site - all blank, thought about it for a second realized we disable Frame loading. That's becoming so common now, any tool using frames is really at a disadvantage.
Geee · 9 years ago
Why do you disable loading in frames? Security?
brak1 · 9 years ago
whats the difference between this and using Chrome's built in responsive tools? (https://developers.google.com/web/tools/chrome-devtools/devi...)
RodericDay · 9 years ago
I use Firefox, which also has a responsive mode, but unless I'm missing something, the built-in tools don't load multiple copies of the website in different sizes side-by-side.

I have my own version of this tool (trivial javascript + iframes), and I use it frequently for one-glance CSS changes.

tomcam · 9 years ago
The idiot poster had a problem with mobile--sorry for the weird title :O
starik36 · 9 years ago
Wow, excellent. Useful right off the bat!