DescriptionImages from content:url() aren't loading if the alt attribute is present
This is a second attempt at supporting fallback content on images that use
content: to provide image data. The first attempt was https://codereview.chromium.org/1134903002.
With this patch when we have this markup:
<style>
#img {content:url('resources/non-existent.png')}
</style>
<img id='img' alt='test image'>
we will first load the image from the content:url() while parsing the style info.
Then when we attach the element to the DOM we will create a layout object for it.
Eventually the image will fail to load and will notify imageChanged(), which will
reattach it and mark the element to load fallback content. A separate image load
will happen for the img element and when that finds there's no src attribute it
will also attempt to reattach the element for fallback content - but it will return
early when it finds the element is already displaying fallback content.
BUG=516239
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200510
Patch Set 1 #Patch Set 2 : Updated #
Total comments: 2
Patch Set 3 : Updated #Messages
Total messages: 7 (3 generated)
|