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

Unified Diff: third_party/WebKit/LayoutTests/fast/backgrounds/background-cover-rounding.html

Issue 1823593003: Fix for lack of cover with background-size: cover (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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/fast/backgrounds/background-cover-rounding-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/backgrounds/background-cover-rounding.html
diff --git a/third_party/WebKit/LayoutTests/fast/backgrounds/background-cover-rounding.html b/third_party/WebKit/LayoutTests/fast/backgrounds/background-cover-rounding.html
new file mode 100644
index 0000000000000000000000000000000000000000..ca7c1c5a1b470e191f6011d4a8affb8d780408ff
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/backgrounds/background-cover-rounding.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <style>
+ .covers {
+ /*data URI of full green 97x43 PNG*/
+ background: red url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAArCAIAAADnp3H+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AMREiYUszPbTwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABOSURBVGje7dAxAQAACAOgaXKj28DbAyJQmXBrBY4cOXLkyJEjHDly5MiRI0eOcOTIkSNHjhzhyJEjR44cOXKEI0eOHDly5AhHjhw5emMB9PAA1iv0hcsAAAAASUVORK5CYII=") no-repeat 0 0 / cover;
+ border: 5px solid gray;
+ margin: 10px;
+ }
+ .contains {
+ /*data URI of full green 97x43 PNG*/
+ background: white url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAAArCAIAAADnp3H+AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AMREiYUszPbTwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABOSURBVGje7dAxAQAACAOgaXKj28DbAyJQmXBrBY4cOXLkyJEjHDly5MiRI0eOcOTIkSNHjhzhyJEjR44cOXKEI0eOHDly5AhHjhw5emMB9PAA1iv0hcsAAAAASUVORK5CYII=") no-repeat 0 0 / contain;
+ border: 5px solid gray;
+ margin: 10px;
+ }
+ </style>
+</head>
+<body>
+<div class="covers" style="width: 120px; height: 50px;"></div>
+<div class="covers" style="width: 50px; height: 120px;"></div>
+<div class="contains" style="width: 150px; height: 49px;"></div>
+<div class="contains" style="width: 50px; height: 50px;"></div>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/backgrounds/background-cover-rounding-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698