Re: Bug#441243: Problem determining dependencies if user is blind
On Sat, Sep 08, 2007 at 12:47:20AM +0200, Richard Atterer wrote:
> On Fri, Sep 07, 2007 at 11:41:27PM +0200, Frank Lichtenheld wrote:
> > Suggestions welcome.
>
> IMHO the root of the problem is the use of class="hidecss". The .hidecss
> rule simply prevents rendering for all media types with "display: none".
> However, the rule for "#pdeps ul.uldep" only replaces bullets with
> "dep.gif" on visual media types. For other media types (including aural),
> the image (and its alt text) simply disappears.
>
> I would suggest the following solution:
>
> 1) Replace these <img class="hidecss"> with
> <span class="nonvisual">depends:</span>
> Putting an <img> in there and then suppressing its being displayed with
> CSS is actually paradoxical... the only justification is compatibility
> with browsers which do not support CSS at all, like lynx.
>
> 2) Introduce a rule to have .nonvisual rendered only for braille, embossed,
> speech, tty:
> @media handheld, print, projection, screen, tv {
> .nonvisual { display: none; }
> }
>
> As usual, this is completely untested! :-)
Sounds sensible. I implemented this at my test site
http://packages.debian.net/
>From what I can see this doesn't change anything in "normal" browsers
and looks okay-ish in text-only browsers.
More tests welcome.
Gruesse,
--
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/
Reply to: