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

Unified Diff: LayoutTests/fast/backgrounds/background-position-repeat-rendering.html

Issue 1287293002: Use background positioning origin for repeating backgrounds (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/backgrounds/background-position-repeat-rendering.html
diff --git a/LayoutTests/fast/backgrounds/background-position-repeat-rendering.html b/LayoutTests/fast/backgrounds/background-position-repeat-rendering.html
new file mode 100644
index 0000000000000000000000000000000000000000..c1b77f282cdaa8faf9f051f6748291c28648ef19
--- /dev/null
+++ b/LayoutTests/fast/backgrounds/background-position-repeat-rendering.html
@@ -0,0 +1,27 @@
+<!doctype html>
+<title>Test non-top-left background-position anchors together with repeating backgrounds</title>
+<style>
+ body { margin: 0 }
+ div {
+ width: 100px;
+ height: 100px;
+ }
+ .anchor-right {
+ background-image: linear-gradient(to left, lime 100px, red 100px);
+ background-size: 200px 100px;
+ background-position: top 0 right 0;
+ }
+ .anchor-bottom {
+ background-image: linear-gradient(to bottom, red 100px, lime 100px);
+ background-size: 100px 200px;
+ background-position: bottom 0 left 0;
+ }
+ .anchor-bottom-right {
+ background-image: linear-gradient(to top left, lime 142px, red 142px);
+ background-size: 200px 200px;
+ background-position: bottom 0 right 0;
+ }
+</style>
+<div class="anchor-right"></div>
+<div class="anchor-bottom"></div>
+<div class="anchor-bottom-right"></div>

Powered by Google App Engine
This is Rietveld 408576698