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

Unified Diff: LayoutTests/fast/css/background-repeat-serialize.html

Issue 303993003: Handle initial values in background-repeat introduced by the background shorthand (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review changes Created 6 years, 7 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
Index: LayoutTests/fast/css/background-repeat-serialize.html
diff --git a/LayoutTests/fast/css/background-repeat-serialize.html b/LayoutTests/fast/css/background-repeat-serialize.html
index a1a4ee265961d8e8ebef7852d45344a7d4316a3b..f8056204e15840240eaf7959b158a3061e40f025 100644
--- a/LayoutTests/fast/css/background-repeat-serialize.html
+++ b/LayoutTests/fast/css/background-repeat-serialize.html
@@ -34,6 +34,13 @@ test(function() {
// FIXME (crbug.com/376179): Make setting background-repeat-x/y to multiple values work on CSSStyleDeclarations.
// assert_equals(serialize('background-repeat-x: repeat, no-repeat; background-repeat-y: no-repeat, repeat, no-repeat'),
// 'repeat-x, repeat-y, repeat-x, no-repeat, repeat, no-repeat');
- assert_equals(serialize('background-repeat: repeat, no-repeat, repeat; background-repeat-y: no-repeat'), 'repeat-x, no-repeat, repeat-x');
+ assert_equals(serialize('background-repeat: repeat, no-repeat, repeat; background-repeat-y: no-repeat;'), 'repeat-x, no-repeat, repeat-x');
}, 'Mismatched value lengths should repeat to their lowest common multiple');
+
+test(function() {
+ assert_equals(serialize('background: url(#1), url(#2), url(#3);'), 'repeat, repeat, repeat');
+ assert_equals(serialize('background: repeat-x, repeat-y, url(#);'), 'repeat-x, repeat-y, repeat');
+ assert_equals(serialize('background: url(#), no-repeat; background-repeat-x: no-repeat'), 'repeat-y, no-repeat');
+ assert_equals(serialize('background: url(#), no-repeat; background-repeat-y: no-repeat'), 'repeat-x, no-repeat');
+}, 'Initial values introduced by the background shorthand should be handled as repeat.');
</script>
« no previous file with comments | « no previous file | Source/core/css/StylePropertySerializer.cpp » ('j') | Source/core/css/StylePropertySerializer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698