[Webkit-unassigned] [Bug 5566] ALT attribute value sometimes not displayed when image is missing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Dec 18 13:42:53 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=5566
--- Comment #61 from Gérard Talbot <browserbugs at gtalbot.org> 2011-12-18 13:42:51 PST ---
(In reply to comment #6)
> how to render missing images with alt text
> (b) when their dimensions are not specified
> In the latter case, how do you determine what size to use for the image?
Render the alt text as inline, in which case width and height do not apply: the text will use as much space it requires and needs.
If you decide not to render the alt text as inline, then sizes (width and height) are entirely user-agent dependent and arbitrary and you may have exactly what happens in this bug: truncated alt text and people filing bug reports.
(In reply to comment #7)
> the size of the image should be 300px x 150px as specified by the CSS spec.
> See:
>
> http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width
> http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-height
What you suggest would apply for <iframe> and <img> withOUT an intrinsic ratio and with a css 'width' of auto; this is not the case for images and not possible for images. Images have (one of the 3 following) an intrinsic ratio or an intrinsic width or an intrinsic height.
If you define an <iframe> without a width or height attribute specification and with css 'width' as auto, then a particular statement of
section 10.3.2
http://www.w3.org/TR/CSS21/visudet.html#inline-replaced-width
is going to apply.
Replaced elements does not imply an alt text: the 2 are different matters.
A replaced element by definition has an attribute like data or src. <object>, <iframe> and <img> are inline replaced elements. <frame> is a block level replaced element.
Replace element definition:
http://www.w3.org/TR/CSS21/conform.html#defs
regards, Gérard
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list