<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>62774</bug_id>
          
          <creation_ts>2011-06-15 20:38:55 -0700</creation_ts>
          <short_desc>AX: If HTML image is not rendered, WebKit should visibly display the alt text</short_desc>
          <delta_ts>2025-03-31 22:48:10 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Accessibility</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=266675</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=136291</see_also>
          <bug_file_loc>http://html4all.org/staging/a11y-bugs/1002/test1.php</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Vlad Alexander">vlad.alexander</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>chriskirknielsen+wkbugs</cc>
    
    <cc>jcraig</cc>
    
    <cc>mjs</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>421735</commentid>
    <comment_count>0</comment_count>
    <who name="Vlad Alexander">vlad.alexander</who>
    <bug_when>2011-06-15 20:38:55 -0700</bug_when>
    <thetext>If image dimensions (@width and @height) are specified, the browser renders alternate text within those dimensions. If alternate text does not fit those dimensions, it is cut-off. This can result in loss of information to the reader and affects comprehension. This also does not encourage use of alternate text.

To reproduce the problem, render the following markup:

&lt;h1&gt;I &lt;img src=&quot;heart.gif&quot; alt=&quot;love&quot; width=&quot;16&quot; height=&quot;16&quot; /&gt; you!&lt;/h1&gt;

Above markup in standards mode:
http://html4all.org/staging/a11y-bugs/1002/test1.php

Above markup in quirks mode:
http://html4all.org/staging/a11y-bugs/1002/test2.php

Notice that you cannot read the word &quot;love&quot; because it is cut-off as shown in this screen shot:
http://html4all.org/staging/a11y-bugs/1002/safari-bad-alt-render.gif

Firefox correctly renders alternate text (not constrained by @width and @height) if page contains a DOCTYPE. While the image is loading, a placeholder (outline) with the @width/@height is rendered. When the image fails to load, alternate text is rendered in place of the image placeholder/outline as shown in the following screen shot:
http://html4all.org/staging/a11y-bugs/1002/ff-good-alt-render.gif

Test case - image loads after 5 seconds:
http://rebuildingtheweb.com/misc/html4all/slow-load-found.asp

Test case - image fails to loads after 5 seconds:
http://rebuildingtheweb.com/misc/html4all/slow-load-not-found.asp

It would be useful to have alternate text displayed as text, rather than text on a graphic. This way, parts of alternate text could be selected, copied and alternate text would wrap. It would also be beneficial to make alternate text participate in Find operation.

In order stress the importance of this bug and to assure you that the recommended way of fixing the bug is appropriate, this bug is co-signed by the following accessiblity experts:

- Alastair Campbell
- Andrew Downie
- Denis Boudreau
- Everett Zufelt
- Jason Kiss
- Jim Byrne
- John Foliot
- Joshue O Connor
- Laura Carlson
- Leif Halvard Silli
- Nigel Peck
- Roberto Scano
- Roger Johansson
- Vlad Alexander

This bug report comes from the community led a11y bugs project here:
http://html4all.org/staging/a11y-bugs/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>422034</commentid>
    <comment_count>1</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2011-06-16 10:33:14 -0700</bug_when>
    <thetext>It&apos;s not necessary or helpful to &quot;co-sign&quot; bugs like this. The key things to provide are detailed information on the bug, simple test cases, and sites affected by the bug. Lists of names just clog up the bug. Thanks for the great technical info though!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>422047</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-06-16 10:40:38 -0700</bug_when>
    <thetext>The provided test doesn&apos;t show cut-off test - it shows missing text, as in bug 5566. Could you please amend the test so that it showed cut-off text?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>422068</commentid>
    <comment_count>3</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2011-06-16 10:59:02 -0700</bug_when>
    <thetext>I don&apos;t think we ever cut the text off, I think it is always missing if it would be cut off.

Here is a test case that illustrates Safari&apos;s behavior in various cases, it is instructive to compare to Firefox:

&lt;img src=nonexistent.jpg alt=&quot;Some fancy alt text goes here.&quot;&gt;&lt;br&gt;
&lt;img height=100 width=400 src=nonexistent.jpg alt=&quot;Some fancy alt text goes here.&quot;&gt;&lt;br&gt;
&lt;img height=100 width=100 src=nonexistent.jpg alt=&quot;Some fancy alt text goes here.&quot;&gt;&lt;br&gt;
&lt;img height=50 width=50 src=nonexistent.jpg alt=&quot;Some fancy alt text goes here.&quot;&gt;&lt;br&gt;


&lt;img alt=&quot;Some fancy alt text goes here.&quot;&gt;&lt;br&gt;
&lt;img height=100 width=400 src=nonexistent.jpg alt=&quot;Some fancy alt text goes here.&quot;&gt;&lt;br&gt;
&lt;img height=100 width=100 alt=&quot;Some fancy alt text goes here.&quot;&gt;&lt;br&gt;
&lt;img height=50 width=50 alt=&quot;Some fancy alt text goes here.&quot;&gt;&lt;br&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>942916</commentid>
    <comment_count>4</comment_count>
      <attachid>215012</attachid>
    <who name="James Craig">jcraig</who>
    <bug_when>2013-10-23 17:05:48 -0700</bug_when>
    <thetext>Created attachment 215012
test case demonstrating bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>942918</commentid>
    <comment_count>5</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2013-10-23 17:08:44 -0700</bug_when>
    <thetext>&lt;rdar://problem/15305013&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>953829</commentid>
    <comment_count>6</comment_count>
    <who name="James Craig">jcraig</who>
    <bug_when>2013-11-23 19:00:42 -0800</bug_when>
    <thetext>A few blog posts covering this one. Might include some additional test cases:
http://blog.paciellogroup.com/2010/01/alt-and-title-content-display-in-popular-browsers/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1574731</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-09-26 22:00:39 -0700</bug_when>
    <thetext>None of the http://html4all.org links load for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2107724</commentid>
    <comment_count>8</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-03-31 22:46:38 -0700</bug_when>
    <thetext>*** Bug 290433 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>215012</attachid>
            <date>2013-10-23 17:05:48 -0700</date>
            <delta_ts>2013-10-23 17:05:48 -0700</delta_ts>
            <desc>test case demonstrating bug</desc>
            <filename>webkit62774.htm</filename>
            <type>text/html</type>
            <size>599</size>
            <attacher name="James Craig">jcraig</attacher>
            
              <data encoding="base64">PGltZyBzcmM9bm9uZXhpc3RlbnQuanBnIGFsdD0iU29tZSBmYW5jeSBhbHQgdGV4dCBnb2VzIGhl
cmUuIj48YnI+CjxpbWcgaGVpZ2h0PTEwMCB3aWR0aD00MDAgc3JjPW5vbmV4aXN0ZW50LmpwZyBh
bHQ9IlNvbWUgZmFuY3kgYWx0IHRleHQgZ29lcyBoZXJlLiI+PGJyPgo8aW1nIGhlaWdodD0xMDAg
d2lkdGg9MTAwIHNyYz1ub25leGlzdGVudC5qcGcgYWx0PSJTb21lIGZhbmN5IGFsdCB0ZXh0IGdv
ZXMgaGVyZS4iPjxicj4KPGltZyBoZWlnaHQ9NTAgd2lkdGg9NTAgc3JjPW5vbmV4aXN0ZW50Lmpw
ZyBhbHQ9IlNvbWUgZmFuY3kgYWx0IHRleHQgZ29lcyBoZXJlLiI+PGJyPgoKCjxpbWcgYWx0PSJT
b21lIGZhbmN5IGFsdCB0ZXh0IGdvZXMgaGVyZS4iPjxicj4KPGltZyBoZWlnaHQ9MTAwIHdpZHRo
PTQwMCBzcmM9bm9uZXhpc3RlbnQuanBnIGFsdD0iU29tZSBmYW5jeSBhbHQgdGV4dCBnb2VzIGhl
cmUuIj48YnI+CjxpbWcgaGVpZ2h0PTEwMCB3aWR0aD0xMDAgYWx0PSJTb21lIGZhbmN5IGFsdCB0
ZXh0IGdvZXMgaGVyZS4iPjxicj4KPGltZyBoZWlnaHQ9NTAgd2lkdGg9NTAgYWx0PSJTb21lIGZh
bmN5IGFsdCB0ZXh0IGdvZXMgaGVyZS4iPjxicj4=
</data>

          </attachment>
      

    </bug>

</bugzilla>