about summary refs log tree commit diff stats
path: root/src/css/cssvalues.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-15 17:21:57 +0200
committerbptato <nincsnevem662@gmail.com>2024-10-15 17:36:48 +0200
commitdb0fc5a55e797044c5e404f301f12dba9969e4d8 (patch)
tree392c6b2999836deb95a917ec9de9bc1a3bd99c18 /src/css/cssvalues.nim
parent1cac5ae3ce2286b8fc7a591a26e5a0cc3e4f775a (diff)
downloadchawan-db0fc5a55e797044c5e404f301f12dba9969e4d8.tar.gz
css: add reverse video extension
Called -cha-reverse.

Mostly to solve the problem that code tags are indistinguishable from
regular text - on a graphical browser this is normally served by
monospace font, but we always use monospace...

So now the default ua.css adds reverse video to code and xmp. pre
remains as it was, because it means "preformatted", not "monospaced".
Also, it would mess with our whatever-to-HTML converter output.
Diffstat (limited to 'src/css/cssvalues.nim')
-rw-r--r--src/css/cssvalues.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/css/cssvalues.nim b/src/css/cssvalues.nim
index 03543576..74e97aa5 100644
--- a/src/css/cssvalues.nim
+++ b/src/css/cssvalues.nim
@@ -188,6 +188,7 @@ type
     TextDecorationOverline = "overline"
     TextDecorationLineThrough = "line-through"
     TextDecorationBlink = "blink"
+    TextDecorationReverse = "-cha-reverse"
 
   CSSWordBreak* = enum
     WordBreakNormal = "normal"