From 9119ebcea60a729d7028ed064fd629f9cd39f120 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Fri, 19 Sep 2014 18:26:53 -0700 Subject: [PATCH] Make vendor prefix work on safari --- src/Layout-test-utils.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Layout-test-utils.js b/src/Layout-test-utils.js index 24765985..92930638 100644 --- a/src/Layout-test-utils.js +++ b/src/Layout-test-utils.js @@ -14,10 +14,15 @@ var layoutTestUtils = (function() { position: relative; display: flex; + display: -webkit-flex; flex-direction: column; + -webkit-flex-direction: column; align-items: flex-start; + -webkit-align-items: flex-start; justify-content: flex-start; + -webkit-justify-content: flex-start; flex-shrink: 0; + -webkit-flex-shrink: 0; margin: 0; padding: 0; @@ -73,6 +78,7 @@ var layoutTestUtils = (function() { function transfer(div, node, name, ext) { if (name in node.style) { + div.style['-webkit-' + name] = node.style[name] + (ext || ''); div.style[name] = node.style[name] + (ext || ''); } }