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

Unified Diff: third_party/WebKit/LayoutTests/csspaint/geometry-background-image-tiled.html

Issue 1866623002: Hook up CSSPaintValue::image to CSS Paint API callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments + rebase. Created 4 years, 8 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/csspaint/geometry-background-image-tiled.html
diff --git a/third_party/WebKit/LayoutTests/csspaint/geometry-background-image-tiled.html b/third_party/WebKit/LayoutTests/csspaint/geometry-background-image-tiled.html
new file mode 100644
index 0000000000000000000000000000000000000000..ada07f5fd18ba17150c058b59cafbc31396c2a9c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/csspaint/geometry-background-image-tiled.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/run-after-layout-and-paint.js"></script>
+<script src="resources/test-runner-geometry-logging.js"></script>
+<style>
+ div {
+ background-color: red;
+ }
+</style>
+<script>
+function runTest() {
+ testRunnerGeometryLogging([{
+ func: function(el) {
+ el.style.width = '100px';
+ el.style.height = '100px';
+ el.style.background = 'paint(logging-green) top left/50% 50% repeat-x';
+ },
+ expected: {width: 50, height: 50},
+ }, {
+ func: function(el) {
+ el.style.width = '100px';
+ el.style.height = '100px';
+ el.style.background = 'paint(logging-green) center right/50% 20% no-repeat';
+ },
+ expected: {width: 50, height: 20},
+ }, {
+ func: function(el) {
+ el.style.width = '100px';
+ el.style.height = '100px';
+ el.style.background = 'paint(logging-green) center center/60px 80px no-repeat';
+ },
+ expected: {width: 60, height: 80},
+ }]);
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>This tests the geometry information in the paint callback.</p>
+<p>See the devtools console for test output.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698