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

Unified Diff: third_party/WebKit/LayoutTests/fast/backgrounds/background-clip-per-layer.html

Issue 1676513003: Move background/webkit-mask shorthands into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix background-size logic Created 4 years, 9 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: 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>

Powered by Google App Engine
This is Rietveld 408576698