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

Unified Diff: third_party/WebKit/LayoutTests/fast/hidpi/background-tile-bleed.html

Issue 2582383002: Clamp background tiles when possible (Closed)
Patch Set: relax asserts Created 4 years 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: third_party/WebKit/LayoutTests/fast/hidpi/background-tile-bleed.html
diff --git a/third_party/WebKit/LayoutTests/fast/hidpi/background-tile-bleed.html b/third_party/WebKit/LayoutTests/fast/hidpi/background-tile-bleed.html
new file mode 100644
index 0000000000000000000000000000000000000000..d9156dd1bd8c5855c4957cbc40e8824880711217
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/hidpi/background-tile-bleed.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<style>
+#div-horizontal {
+ width: 200px;
+ height: 100px;
+ /* red band at the bottom */
+ background-image: url("data:image/svg+xml,\
+ <svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'>\
+ <rect width='100%' height='100%' fill='red'/>\
+ <rect width='100%' height='100' fill='green'/>\
+ </svg>");
+}
+
+#div-vertical {
+ width: 100px;
+ height: 200px;
+ /* red band on the right */
+ background-image: url("data:image/svg+xml,\
+ <svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'>\
+ <rect width='100%' height='100%' fill='red'/>\
+ <rect width='100' height='100%' fill='green'/>\
+ </svg>");
+}
+</style>
+
+<script src="resources/srcset-helper.js"></script>
+
+<!-- There should be no bleeding due to repeat edge wrapping in the dimension
+ fully covered by the tile -->
+<div id="div-horizontal"></div>
+<br>
+<div id="div-vertical"></div>
+

Powered by Google App Engine
This is Rietveld 408576698