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..8ae33397c0cdddf4377b969e2ca6eaef3bb43600 |
--- /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 = '200px'; |
chrishtr
2016/04/26 01:13:42
Nit: It would be clearer if you made it 100px x 10
ikilpatrick
2016/04/26 16:57:41
Done.
|
+ el.style.height = '200px'; |
+ el.style.background = 'paint(logging-green) center right/50% 20% no-repeat'; |
+ }, |
+ expected: {width: 100, height: 40}, |
+ }, { |
+ 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> |