News for hackers. Stuff that matters.
Re:Tota11y by metaobject on Monday June 29, 2015 @09:10AM (#9797801)
I'll post this here since people interested in accessibility will be reading this thread.

I have terrible vision. One of my pet peeves is when I go to a website on my phone through safari that doesn't allow me to zoom the text. For those occasions, I came across a JavaScript bookmark that I created on my phone that runs to undo whatever is preventing me from zooming in.

I'm not a web developer (I do desktop/server software development), so I have no idea how or why certain pages implement this policy/style. It just seems a little arbitrary to choose a font size for your site and not allow visitors to zoom-in in case they have trouble reading the text.

Re:Tota11y by mkozlows on Monday June 29, 2015 @10:04AM (#9798110)
For what it's worth, using the viewport meta element to disable zoom is a WCAG AA accessibility violation: http://www.w3.org/TR/mobile-accessibility-mapping/#zoom-magn...
Re:Tota11y by yellowapple on Monday June 29, 2015 @12:42PM (#9799191)
That seems to focus on font size adjustments, which would be unaffected by a meta viewport, no?
Re:Tota11y by steveax on Monday June 29, 2015 @08:52PM (#9802155)
"Magnify browser's viewport (typically "pinch-zoom")"

That is exactly what is disabled when authors disable zoom via the meta property.

Re:Tota11y by yellowapple on Monday June 29, 2015 @09:08PM (#9802207)
Right, but it's not what the relevant accessibility standard focuses on. It's the difference between zooming the whole page and making just the text bigger (i.e. through a browser's minimum font size setting), and it's only the former that's affected by meta viewport tags, no?
Re:Tota11y by cycomachead on Tuesday June 30, 2015 @08:49PM (#9809330)
As some who also has terrible vision -- dedicated text sizing is awesome, but being able to just pinch-zoom makes ALL the difference for me. So many aspects of a web page are hard to use other than just text as well. (Those "X" close icons can get pretty damn hard to decipher at times.)

No solution is perfect, but allowing zooming is simple and a huge win for me. (Even if the site still has a sticky header that wont get out of the way...)

Re:Tota11y by JoshTriplett on Monday June 29, 2015 @09:53AM (#9798035)
The only legitimate reason I know of: if your site is interpreting touch events directly, and you use pinch-to-zoom yourself; for instance, full-page maps. In that case, it's your responsibility to make all your non-zooming elements (such as the fixed UI overlay on the map) appropriately sized for the device.
Re:Tota11y by Someone1234 on Monday June 29, 2015 @11:56AM (#9798862)
This is a little off topic, but if you use Chrome on Android you can disable site's ability to disable zoom.

- Open Chrome (or Chrome Beta) on Android.

- Settings -> Accessibility

- Force enable zoom (check).

Sites may need to be reloaded after applying this setting.

Re:Tota11y by tracker1 on Monday June 29, 2015 @01:25PM (#9799496)
For that matter, you can also set a default text-scaling level as well (mine is at 130%), which I tend to do in addition to force enable zoom. Many sites have fonts that are too small on a phone imho... they really should be at least 12pt for most text assuming that proper scaling meta is set... Too many sites use 9-10pt fonts which are just really hard to read.

I'm far sighted, so my phone is literally the hardest thing for me to use much of the time. One of the worst offenders was the Facebook app, which didn't seem to even follow Android's setting for using larger fonts. I've since stopped using the FB app (way too much battery usage), and just use the mobile site, which isn't much better in terms of usability.

Re:Tota11y by davidbarker on Monday June 29, 2015 @09:28AM (#9797897)
I agree — disabling zooming is frustrating. Have you tried the "Reader" option in Safari? It works well for a lot of websites.
Re:Tota11y by cycomachead on Tuesday June 30, 2015 @08:51PM (#9809342)
The reader option is awesome when it exists, but there's currently no way to set a site to always enable it. Safari itself makes the determination on a page by page basis. Or at least that used to be the case.
Re:Tota11y by Rifu on Monday June 29, 2015 @09:30AM (#9797910)
I believe one of the reasons for preventing zoom-in is because it plays havoc with any element that is "fixed" in your browser (ie pretty much every nav bar/fixed header you'll ever encounter).
Re:Tota11y by jakobegger on Monday June 29, 2015 @11:10AM (#9798547)
While we're at it, please also get rid of fixed elements, especially on mobile devices. They obscure parts of the page for limited value, and they often break in horrible ways.
Re:Tota11y by leppr on Monday June 29, 2015 @08:55PM (#9802163)
But with more and more mobile web browsers hiding the address bar, how is that person reading over your shoulder going to know what's the name of that awesome site you are viewing?
Re:Tota11y by cycomachead on Tuesday June 30, 2015 @08:55PM (#9809363)
This is the solution...

Even 'zoom' on fixed elements as dastardly as it looks is easier to read than text that is too small.

Re:Tota11y by JoelSutherland on Monday June 29, 2015 @09:53AM (#9798039)
If zooming is disabled, the browser can respond to clicks without a 300ms delay since it doesn't have to wait for a double-click zoom. It seems like the best solution to this problem would be to make a global toggle in settings.
Re:Tota11y by amyjess on Monday June 29, 2015 @10:16AM (#9798186)
Alternately, you can just require multitouch zoom and get rid of the antiquated notion that you can double-click to zoom.
Re:Tota11y by agos on Monday June 29, 2015 @10:37AM (#9798322)
Double tap to zoom is a standard gesture for mobile Safari, hardly antiquated.
Re:Tota11y by SerpentJoe on Monday June 29, 2015 @04:54PM (#9800989)
That's true, but given that pinch to zoom is nearly ubiquitous, and given that the double tap gesture requires a 300ms lag before responding to single taps, the Web would arguably be better without it.
Re:Tota11y by socceroos on Tuesday June 30, 2015 @01:00AM (#9803041)
I can confirm that working around this issue is horrible. That dastardly 300ms makes quick operation of a mobile app a complete pain in the arse. Constantly having to wait for iOS to catch up with you. It really makes the experience horrible.

But that's how iOS want it. If they made webapps that performant then they'd have trouble imprisoning everyone in the App Store.

Re:Tota11y by pjc50 on Monday June 29, 2015 @10:00AM (#9798078)
How? It should just zoom the viewport, there's no reason for any of the DOM elements to even be aware that it's happening. Or has this been implemented in a really stupid way?
Re:Tota11y by Rifu on Monday June 29, 2015 @10:19AM (#9798204)
I'm not too familiar with it myself, but if I had to hazard a guess it's because setting an element to display:fixed breaks it out into its own root stacking context[0], and browser zoom affects every stacking context[1].

Would love to hear from someone who's actually familiar with what's going on though.

[0] http://updates.html5rocks.com/2012/09/Stacking-Changes-Comin...

[1] https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Under...

Re:Tota11y by jameshart on Monday June 29, 2015 @09:42AM (#9797975)
Also screws with ad layout and visibility. For sites that are primarily beholden to ad revenue, that can be a dealbreaker.
Re:Tota11y by locokoko on Monday June 29, 2015 @09:50AM (#9798020)
I just ran into this very problem.

My workaround includes checking the window width with JQuery and changing the fixed status box (originally on the right side of the page) to floating at the top should the width be below a certain margin.

Is this an acceptable solution?

(I am just beginning web dev in lisp)

Re:Tota11y by JoshTriplett on Monday June 29, 2015 @09:54AM (#9798043)
I think you can get the right result with a media query, assuming those are recomputed on zoom, which they should be.
Re:Tota11y by locokoko on Monday June 29, 2015 @10:18AM (#9798194)
Thanks, works perfectly. Now I can delete some unnecessary JS :)
Re:Tota11y by JoshTriplett on Monday June 29, 2015 @09:50AM (#9798023)
That's a reason to set appropriate scale factors, not to prevent zooming entirely.