WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Hidden text and mobile devices

for

From: Patrick H. Lauke
Date: Aug 25, 2016 8:28AM


On 25/08/2016 14:02, Jamous, JP wrote:
> Not touch screen. Rather screen resolution.

Don't try to guess one thing by testing another thing. Checking screen
resolution will only give you hints about screen resolution. It tells
you nothing else (does it have a touchscreen? Or is it a small-screen
device with a built-in trackball, or external mouse, or...). The rest is
all inferred, which will eventually lead to false positives/negatives.

> Check out the .NET framework and look under System.Web.Pages.Request.Browser. You will see what I am referring to right there. There is an array of things to capture.
>
> If OS == "iOS" && ScreenSize => "1024X768" Then
> It is an iPad and not an iPhone.

Once you get into browser sniffing like this, you're setting yourself up
for continuously adding more tests as new browsers/devices come along,
and you still risk false positives/negatives.

https://www.google.co.uk/search?q=browser%20sniffing

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke