Index: third_party/WebKit/LayoutTests/printing/block-width-relayout-shrink.html |
diff --git a/third_party/WebKit/LayoutTests/printing/block-width-relayout-shrink.html b/third_party/WebKit/LayoutTests/printing/block-width-relayout-shrink.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f845b8a9127ee9031dc2f363800f9b23bb3ee5b0 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/printing/block-width-relayout-shrink.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<script> |
+if (window.testRunner) |
+ testRunner.setPrinting(); |
+if (window.internals) |
+ internals.settings.setShouldPrintBackgrounds(true); |
+</script> |
+<style> |
+ @page { margin:0; } |
+ body { margin:0; } |
+</style> |
+<div style="width:50%; height:550px; background:hotpink;"></div> |
+ |
+<!-- This test assumes that the initial page width is less than 1100px, and |
+ that we are allowed to actually stretch it to 1100px after initial layout, |
+ when we have discovered the widest element. The following block will |
+ trigger zoom-out: --> |
+<div style="width:1100px; height:1px;"></div> |