diff --git a/lib/utils/style-gather.html b/lib/utils/style-gather.html
index 7a2bb37c50..56a5a5493c 100644
--- a/lib/utils/style-gather.html
+++ b/lib/utils/style-gather.html
@@ -46,7 +46,7 @@
* @this {StyleGather}
*/
cssFromModules(moduleIds) {
- let modules = moduleIds.trim().split(' ');
+ let modules = moduleIds.trim().split(/\s+/);
let cssText = '';
for (let i=0; i < modules.length; i++) {
cssText += this.cssFromModule(modules[i]);
diff --git a/test/unit/custom-style-import.html b/test/unit/custom-style-import.html
index f631c60d42..eb8503cce7 100644
--- a/test/unit/custom-style-import.html
+++ b/test/unit/custom-style-import.html
@@ -30,7 +30,8 @@
-
+
+
+
+
+
+
\ No newline at end of file