about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/css/cssvalues.nim4
-rw-r--r--test/layout/acid1.color.expected2
-rw-r--r--test/layout/config.color.toml1
3 files changed, 4 insertions, 3 deletions
diff --git a/src/css/cssvalues.nim b/src/css/cssvalues.nim
index 96721e7c..2bd7615b 100644
--- a/src/css/cssvalues.nim
+++ b/src/css/cssvalues.nim
@@ -1024,10 +1024,10 @@ func cssFontWeight(cval: CSSComponentValue): Opt[int] =
     let tok = CSSToken(cval)
     if tok.t == cttIdent:
       const FontWeightMap = {
-        "normal": 400,
         "bold": 700,
+        "bolder": 700,
         "lighter": 400,
-        "bolder": 700
+        "normal": 400
       }
       let i = FontWeightMap.parseIdent(cval)
       if i != -1:
diff --git a/test/layout/acid1.color.expected b/test/layout/acid1.color.expected
index f38e5f58..f4eabf5f 100644
--- a/test/layout/acid1.color.expected
+++ b/test/layout/acid1.color.expected
@@ -1,7 +1,7 @@
                                                                                 
                                                                                                    
                                                                                                    
-      toggle                                                                                       
+      toggle                                                                                       
                               the way         the world ends                   i grow old          
                                               bang ( )                                             
                                               whimper ( )                                          
diff --git a/test/layout/config.color.toml b/test/layout/config.color.toml
index 4b5e999c..bebb411d 100644
--- a/test/layout/config.color.toml
+++ b/test/layout/config.color.toml
@@ -2,3 +2,4 @@ include = "config.toml"
 
 [display]
 color-mode = 'true-color'
+format-mode = ["bold", "italic", "underline", "reverse", "strike"]