W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: [css3-mediaqueries] Touch enabled devices

From: Gregers Gram Rygg <gregersrygg@gmail.com>
Date: Mon, 26 Apr 2010 19:16:54 +0200
Message-ID: <g2g2076e6511004261016v42c21d05nece82d15c991d588@mail.gmail.com>
To: Mikko Rantalainen <mikko.rantalainen@peda.net>
Cc: www-style@w3.org
On Fri, Apr 23, 2010 at 12:38 PM, Mikko Rantalainen
<mikko.rantalainen@peda.net> wrote:
> pointer-precision: <len> | step;
>
> The user is expected to be able to hit targets of size <len> without
> huge effort. The <len> should be expressed in "px", "em" or "ch" unit.

That depends on how flexible this needs to be. Using a value instead
of an input method will make this feature more complicated for browser
developers and web developers. But I wouldn't mind, as long as there
are some predefined keywords for different input devices. Example:
"pointer-precision: touch", where touch could be specified to 8mm.

Shouldn't <len> rather be specified in a physical unit (in, cm, mm, pt
or pc)? A value in px might vary depending on the resolution for the
device, and em/ch depend on the font in use.

Example:
@media screen and (pointer-precision: 10mm) {
    a { padding: 3mm; }
    ul.autocomplete li { padding: 3mm; }
    div.touchController { display: block; }
    div.nonTouchController { display: none; }
}


Gregers
Received on Monday, 26 April 2010 17:17:28 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT