From 0f9b77762347dc239d3d574187c67b7b5fed062a Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Thu, 11 Dec 2014 13:44:03 +0000 Subject: [PATCH] better way to ignore iframe width --- src/Layout-test-utils.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Layout-test-utils.js b/src/Layout-test-utils.js index 20e75e38..1205bee3 100644 --- a/src/Layout-test-utils.js +++ b/src/Layout-test-utils.js @@ -71,8 +71,10 @@ var layoutTestUtils = (function() { margin: 0; padding: 0; } - body { - width: 0; + + hack to ignore three hundred px width of the body {} + body > div { + align-self: flex-start; } */} + '').slice(15, -4); doc.head.appendChild(style);