Index: LayoutTests/fast/backgrounds/background-position-origin-initial.html |
diff --git a/LayoutTests/fast/backgrounds/background-position-origin-initial.html b/LayoutTests/fast/backgrounds/background-position-origin-initial.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9035d2ba68017b7a021d70f4dd3d56aae0f69569 |
--- /dev/null |
+++ b/LayoutTests/fast/backgrounds/background-position-origin-initial.html |
@@ -0,0 +1,35 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <title>background-position: initial 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 50% right 50px; |
+} |
+.test2 { |
+ /* The background-position to be used: */ |
+ background-position: initial; |
+} |
+.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> |