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

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

Issue 35303002: Unstick background position origins (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Re-upload in an attempt to avoid 'old chunk mismatch' Created 7 years, 2 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 | LayoutTests/fast/backgrounds/background-position-origin-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/backgrounds/background-position-origin.html
diff --git a/LayoutTests/fast/backgrounds/background-position-origin.html b/LayoutTests/fast/backgrounds/background-position-origin.html
new file mode 100644
index 0000000000000000000000000000000000000000..dec275642a5dbf1ac1c5d61de0c5a3611abdff38
--- /dev/null
+++ b/LayoutTests/fast/backgrounds/background-position-origin.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>background-position: 2-value on top of 4-value</title>
+ <style>
+body { margin: 0 }
+.test1 {
+ height: 200px;
+ width: 200px;
+ background-image:
+ url(../../css3/images/resources/red-100.png);
+ background-repeat: no-repeat;
+
+ /* Intended to be overwritten: */
+ background-position: bottom 0% right 0px;
+}
+.test2 {
+ /* The background-position to be used: */
+ background-position: 0px 0px;
+}
+.ref {
+ height: 100px;
+ width: 100px;
+ top: 0;
+ left: 0;
+ background-color: green;
+ position: absolute;
+}
+ </style>
+ </head>
+ <body>
+ <div class="test1 test2"></div>
+ <div class="ref"></div>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/backgrounds/background-position-origin-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698