Skip to content

Commit 4238415

Browse files
committed
Added fix for page (#34).
1 parent 316ee49 commit 4238415

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,16 +339,15 @@ module.exports = function(css, options){
339339
if (!m) return;
340340

341341
var sel = selector() || [];
342-
var decls = [];
343342

344343
if (!open()) return error("@page missing '{'");
345-
comments();
344+
var decls = comments();
346345

347346
// declarations
348347
var decl;
349348
while (decl = declaration()) {
350349
decls.push(decl);
351-
comments();
350+
decls = decls.concat(comments());
352351
}
353352

354353
if (!close()) return error("@page missing '}'");

0 commit comments

Comments
 (0)