WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Using title attribute on non-anchor elements?

for

From: Detlev Fischer
Date: May 3, 2016 4:51AM


Points taken! When I said "only displays tooltip if title is on links" I didn't mean to imply that it would not display on other focusable elements - just that it does not seem to work if title is put on an img element within a link. Looks like it generally works when title is directly placed on focusable elements (incl. span with tabindex=0).
--
Detlev Fischer
testkreis c/o feld.wald.wiese
Thedestr. 2, 22767 Hamburg

Mobil +49 (0)157 57 57 57 45
Fax +49 (0)40 439 10 68-5

http://www.testkreis.de
Beratung, Tests und Schulungen für barrierefreie Websites

Patrick H. Lauke schrieb am 03.05.2016 10:13:

> On 03/05/2016 08:40, Detlev Fischer wrote:
>> Weird - IE11 (11.0.9600.17842) does display title, but only on links
>> (incl. linked images)
>
> I briefly tested it for links, for <span tabindex="0"> items, and for an
> <input type="text">, and in all cases it displayed.
>
>> There is an offset of about a second before it appears which means
>> you can easily miss it when tabbing through several links. The
>> 'tooltip' does not scale along with browser zoom. And it only lasts
>> for about 5 secs and then fades. Oh, and in some cases (depending on
>> the position of the element and the page's scroll state), it is
>> actually displayed outside the browser window far below the element -
>> I guess this is a bug. I have checked this on an alt and title test
>> page that I have put together recently:
>> http://www.3needs.org/en/testing/code/alt+title-test.html
>
> Note that all those characteristics (the 1 second delay, the fact it
> doesn't scale with browser zoom, etc) are just as true for mouse users.
> i.e. this tooltip is the IE11/Edge standard tooltip.
>
> With regards to not changing size relative to browser zoom: arguably the
> tooltip is part of the browser UI, so I can understand why it would take
> its sizing not from the current page content, but from the UI font size.
>
> 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
> > > > >