Bug#661205: ALT text totally ignored if can't fit in box. Not even folded like firefox

Jonathan Nieder jrnieder at gmail.com
Sat Feb 25 00:57:39 UTC 2012


tags 661205 + upstream
forwarded 661205 http://crbug.com/773
quit

Hi 積丹尼,

積丹尼 wrote:

> Compare how firefox and chromium treat gone images.
> Completely ignoring the ALT text is against web standards.
>
> <html>
>  <p>
>  <img height="216" width="111" src=
>  "gone"
>  alt="[Image: Map of Taiwan]">
>
>  <img height="216" width="311" src=
>  "gone"
>  alt="[Image: Map of Taiwan]">
> </html>

Yes, I can reproduce it.  This is [1], which has a patch that needs
finishing touches:

| All the magic numbers should be explained through constants and not
| via comments.
|
| And this patch needs tests for all the cases that were discussed in
| the comments (explicit size via image attribute, CSS, text that fits,
| text that wraps, etc).

Hope that helps,
Jonathan

[1] https://bugs.webkit.org/show_bug.cgi?id=5566





More information about the Pkg-games-devel mailing list