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

Unified Diff: third_party/WebKit/LayoutTests/images/rendering-broken-0px-images.html

Issue 2853733004: Render 0px broken images correctly in quirks mode (Closed)
Patch Set: Render 0px broken images correctly in quirks mode Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/images/rendering-broken-0px-images-quirk.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/images/rendering-broken-0px-images.html
diff --git a/third_party/WebKit/LayoutTests/images/rendering-broken-0px-images.html b/third_party/WebKit/LayoutTests/images/rendering-broken-0px-images.html
new file mode 100644
index 0000000000000000000000000000000000000000..f374c8587e2cfa22431ff5aa896e7929e00df918
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/images/rendering-broken-0px-images.html
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<p>crbug.com/644802: Render alt text per html5 spec</p>
+<div style="columns:4; -moz-columns: 4; height: 800px;">
+<div style="break-inside: avoid;">
+<p>Different dimensions</p>
+1.<img src="test.jpg" alt="alt text" style="height:0px; width:0px; background-color: green;"/> <br>
+2.<img src="test.jpg" alt="alt text" style="width:0px; background-color: green;"/><br>
+3.<img src="test.jpg" alt="alt text" style="height:0px; background-color: green;"/><br>
+4.<img src="test.jpg" alt="alt text" style="background-color: green;"/>
+</div>
+
+<div style="break-inside: avoid;">
+<p>Different dimensions, no alt text</p>
+1.<img src="est.jpg" style="height:0px; width:0px; background-color: green;"/><br>
+2.<img src="est.jpg" style="width:0px; background-color: green;"/><br>
+3.<img src="est.jpg" style="height:0px; background-color: green;"/><br>
+4.<img src="est.jpg" />
+</div>
+
+<div style="break-inside: avoid;">
+<p>Different dimensions, no alt text, src = ""</p>
+1.<img src="" style="height:0px; width:0px; background-color: green;"/><br>
+2.<img src="" style="width:0px; background-color: green;"/><br>
+3.<img src="" style="height:0px; background-color: green;"/><br>
+4.<img src="" /><br>
+</div>
+
+<div style="break-inside: avoid;">
+<p>Different dimensions, no alt text, no src</p>
+1.<img style="height:0px; width:0px; background-color: green;"/> <br>
+2.<img style="width:0px; background-color: green;"/> <br>
+3.<img style="height:0px; background-color: green;"/> <br>
+4.<img />
+</div>
+
+<div style="break-inside: avoid;">
+<p>Different dimensions, alt text, src = ""</p>
+1.<img src="" alt="alt text" style="height:0px; width:0px; background-color: green;"/> <br>
+2.<img src="" alt="alt text" style="width:0px; background-color: green;"/> <br>
+3.<img src="" alt="alt text" style="height:0px; background-color: green;"/> <br>
+4.<img src="" /> <br>
+</div>
+
+<div style="break-inside: avoid;">
+<p>Different dimensions, alt text, no src</p>
+1.<img alt="alt text" style="height:0px; width:0px; background-color: green;"/> <br>
+2.<img alt="alt text" style="width:0px; background-color: green;"/> <br>
+3.<img alt="alt text" style="height:0px; background-color: green;"/> <br>
+4.<img alt="alt text"/> <br>
+</div>
+
+<div style="break-inside: avoid;">
+<p>Different dimensions, alt text, src = </p>
+1.<img src alt="alt text" style="height:0px; width:0px; background-color: green;"/> <br>
+2.<img src alt="alt text" style="width:0px; background-color: green;"/> <br>
+3.<img src alt="alt text" style="height:0px; background-color: green;"/> <br>
+4.<img src /> <br>
+</div>
+</div>
+
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/images/rendering-broken-0px-images-quirk.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698