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

Unified Diff: LayoutTests/fast/backgrounds/background-shorthand-multiple-layers.html

Issue 879993003: Fix serialization of background property with multiple layers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 5 years, 11 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-shorthand-multiple-layers-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/backgrounds/background-shorthand-multiple-layers-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698