Index: third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer.html |
diff --git a/third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer.html b/third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..430ee30308451d524c537e65e00b9b26d8ff256c |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<html> |
+<script src="../../resources/js-test.js"></script> |
+<div id="test"> </div> |
+<script> |
+description("Tests a flag to make background shorthand property not override background-size when it's already set."); |
Timothy Loh
2016/03/07 03:55:07
needs update
rwlbuis
2016/03/08 02:51:49
Done.
rwlbuis
2016/03/08 02:51:49
Done.
|
+ |
+var e = document.getElementById('test'); |
+ |
+e.style.background = "url('a') content-box padding-box, url('b') border-box"; |
+//e.style.background = "url('a') border-box"; |
Timothy Loh
2016/03/07 03:55:07
remove this?
rwlbuis
2016/03/08 02:51:49
Done.
|
+shouldBeEqualToString("e.style.backgroundOrigin", 'content-box, border-box'); |
+shouldBeEqualToString("e.style.backgroundClip", 'padding-box, border-box'); |
+debug("") |
Timothy Loh
2016/03/07 03:55:07
does this do anything?
rwlbuis
2016/03/08 02:51:49
Just adds a newline to expected result, removed.
|
+ |
+</script> |
+</body> |
+</html> |