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

Unified Diff: LayoutTests/fast/images/content-url-image-with-alt-text-dynamic-2.html

Issue 1277013005: Images from content:url() aren't loading if the alt attribute is present (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/images/content-url-image-with-alt-text-dynamic-2.html
diff --git a/LayoutTests/fast/images/content-url-image-with-alt-text-dynamic-2.html b/LayoutTests/fast/images/content-url-image-with-alt-text-dynamic-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..a3236dfffd511634450d229bd073f54c9b9812dd
--- /dev/null
+++ b/LayoutTests/fast/images/content-url-image-with-alt-text-dynamic-2.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<style>
+#img {content:url('resources/lenna.png')}
+</style>
+<img id='img' alt='test image'>
+<script>
+ document.getElementById('img').style.content = "url('ImageDoesNotExist')";
+ document.getElementById('img').style.content = "url('resources/lenna.png')";
+ document.getElementById('img').style.content = "url('ImageDoesNotExist')";
+</script>
+<p>crbug.com/516239: images set by content: url() should behave correctly with alt text.

Powered by Google App Engine
This is Rietveld 408576698