[Bug 26869] alt text length

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26869

--- Comment #6 from Liam R E Quin <liam@w3.org> ---
My own feeling, coming to the document from the outside, is that a best
practice document should explain that alt text might be truncated by browsers,
or even dropped entirely, if the text doesn't fit in the space available for
the image, so that authors should not rely on it being presented in full for
all users when images are for any reason not rendered.

The HTML 5 spec doesn't seem to say clearly exactly what a browser should do,
unfortunately, so it's not clear that any of the browsers are actually buggy,
although since not displaying the attribute content at all is pretty unhelpful
I agree it's worth filing a bug.

What do screen readers do in these cases?

I had added width and height attributes to a copy of one of the examples in the
draft and found firefox wraps the alt text, which is useful, and fits it all
for that particular example, but as you point out Chrome doesn't even try. (I'm
not able to try IE right now). Actually Firefox's behaviour depends on the
DOCTYPE, so probably standards mode vs. quirks mode.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 15 October 2014 17:48:57 UTC