about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-08 17:42:18 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-08 18:01:43 +0100
commitbb67136fd92e1bf777f51816bdb73ff0a0001f4c (patch)
tree89f0c45bd6b986ba424dc35012d4b29b6fc6f06c /src/css
parent250cbcfaf6cb57b152659fb9e3c195ef4938adae (diff)
downloadchawan-bb67136fd92e1bf777f51816bdb73ff0a0001f4c.tar.gz
buffer: load external resources when they are attached
We no longer have to wait for the entire document to be loaded to start
loading CSS.
Diffstat (limited to 'src/css')
-rw-r--r--src/css/cascade.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/css/cascade.nim b/src/css/cascade.nim
index 0168e940..4429dee4 100644
--- a/src/css/cascade.nim
+++ b/src/css/cascade.nim
@@ -79,6 +79,8 @@ func applies*(mqlist: MediaQueryList, window: Window): bool =
       return true
   return false
 
+appliesFwdDecl = applies
+
 type
   ToSorts = array[PseudoElem, seq[(int, seq[CSSDeclaration])]]