Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Issue 419453003: Show alt text when source image is missing or broken or not found. (Closed)

Created:
6 years, 5 months ago by shreeramk
Modified:
5 years, 2 months ago
Reviewers:
esprehn
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Show alt text when source image is missing or broken or not found. Instead of broken image alt text needs to be displayed if its present. This behavior is same as firefox. BUG=157207, 773

Patch Set 1 #

Patch Set 2 : Rebaseline for existing layout tests #

Patch Set 3 : Rebaselining virtual layout tests #

Total comments: 1

Patch Set 4 : Adding layout tests #

Patch Set 5 : Rebaselining newly added Layout test cases #

Messages

Total messages: 9 (0 generated)
shreeramk
Many of the layout tests will be failed as there is change in alt attribute ...
6 years, 5 months ago (2014-07-24 13:54:28 UTC) #1
tkent
a duplication of https://codereview.chromium.org/328703003/ ?
6 years, 5 months ago (2014-07-24 23:41:12 UTC) #2
shreeramk
On 2014/07/24 23:41:12, tkent wrote: > a duplication of https://codereview.chromium.org/328703003/ ? No, its not a ...
6 years, 5 months ago (2014-07-25 05:02:06 UTC) #3
esprehn
https://codereview.chromium.org/419453003/diff/40001/Source/core/rendering/RenderImage.cpp File Source/core/rendering/RenderImage.cpp (right): https://codereview.chromium.org/419453003/diff/40001/Source/core/rendering/RenderImage.cpp#newcode337 Source/core/rendering/RenderImage.cpp:337: context->drawBidiText(font, textRunPaintInfo, textOrigin); This won't wrap the text, so ...
6 years, 4 months ago (2014-08-01 13:45:25 UTC) #4
shreeramk
On 2014/08/01 13:45:25, esprehn wrote: > https://codereview.chromium.org/419453003/diff/40001/Source/core/rendering/RenderImage.cpp > File Source/core/rendering/RenderImage.cpp (right): > > https://codereview.chromium.org/419453003/diff/40001/Source/core/rendering/RenderImage.cpp#newcode337 > ...
6 years, 4 months ago (2014-08-02 16:24:47 UTC) #5
esprehn
On 2014/08/02 at 16:24:47, shreeram.k wrote: > ... > > And yes I think my ...
6 years, 4 months ago (2014-08-13 06:01:08 UTC) #6
shreeramk
On 2014/08/13 06:01:08, esprehn wrote: > On 2014/08/02 at 16:24:47, shreeram.k wrote: > > ...
6 years, 4 months ago (2014-08-13 06:14:30 UTC) #7
shreeramk
@espreh PTAL. Regarding Invalidating alt text. Case 1: If no width is specified and alt ...
6 years, 4 months ago (2014-08-20 07:03:42 UTC) #8
esprehn
6 years, 4 months ago (2014-08-21 06:48:17 UTC) #9
On 2014/08/20 at 07:03:42, shreeram.k wrote:
> @espreh 
> PTAL.
> 
> Regarding Invalidating alt text.
> 
> Case 1: If no width is specified and alt text is present, then when should we
invalidate?
> Refer - image-alt-text-no-width-expected.png 
> 
> Case 2: If width(say 50px) is specified and alt Text width is more, then
should we only show alt text till the box boundary of <img> tag?
> Refer - image-alt-text-width-expected.png

I don't think this can work, you'd need to issue an invalidation based on the
size of the text when something changes since you're drawing outside the bounds
of the box and not maintaining overflow. We probably shouldn't show the alt text
if it doesn't fit and wait for https://codereview.chromium.org/481753002

You might also try talking to rhogan.

Powered by Google App Engine
This is Rietveld 408576698