Index: LayoutTests/fast/backgrounds/background-shorthand-multiple-layers.html |
diff --git a/LayoutTests/fast/backgrounds/background-shorthand-multiple-layers.html b/LayoutTests/fast/backgrounds/background-shorthand-multiple-layers.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4a48f0a961f989d055ec75d90b1fe2d37569889c |
--- /dev/null |
+++ b/LayoutTests/fast/backgrounds/background-shorthand-multiple-layers.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<html> |
+<style>#test { background: url(dummy://foo), red url(dummy://bar); }</style> |
+<script src="../../resources/js-test.js"></script> |
+<div id="test"> </div> |
+<script> |
+description("Tests that serialization of background shorthand property with multiple layers is correct."); |
+ |
+var e = document.getElementById('test'); |
+shouldBe("getComputedStyle(e).background", "'url(dummy://foo) repeat scroll 0% 0% / auto padding-box border-box, rgb(255, 0, 0) url(dummy://bar) repeat scroll 0% 0% / auto padding-box border-box'") |
+ |
+</script> |
+</body> |
+</html> |