aboutsummaryrefslogtreecommitdiff
path: root/dw/style.hh
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-10-02 19:32:44 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-10-05 09:47:01 +0200
commit08371f8d8532fd82cb59d9eae85cb2e5a835376f (patch)
tree1586944bfee51ee68cb47e64d630c46f25b44abe /dw/style.hh
parentac56aa678cfe1666b60821f342ccb7b3d3fa7a0d (diff)
Add support for more CSS units
Implements support for ch, rem, vw, vh, vmin and vmax units of CSS lengths. For now the units relative to the viewport are only computed once, and they won't change when the window is resized, but only when the page is reloaded. See: https://www.toomanyatoms.com/software/mobilized_dillo.html Authored-By: dogma
Diffstat (limited to 'dw/style.hh')
-rw-r--r--dw/style.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/dw/style.hh b/dw/style.hh
index 12ca1664..12b7cbde 100644
--- a/dw/style.hh
+++ b/dw/style.hh
@@ -715,6 +715,7 @@ public:
int ascent, descent;
int spaceWidth;
int xHeight;
+ int zeroWidth;
static Font *create (Layout *layout, FontAttrs *attrs);
static bool exists (Layout *layout, const char *name);