about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/css/sheet.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/sheet.nim b/src/css/sheet.nim
index 0929d7f9..bf38c918 100644
--- a/src/css/sheet.nim
+++ b/src/css/sheet.nim
@@ -198,7 +198,7 @@ proc addAtRule(stylesheet: var CSSStylesheet, atrule: CSSAtRule) =
         else:
           media.children.addRule(CSSQualifiedRule(rule))
       stylesheet.mqList.add(media)
-      stylesheet.len += media.children.len
+      stylesheet.len = media.children.len
   else: discard #TODO
 
 proc parseStylesheet*(s: Stream): CSSStylesheet =