summaryrefslogtreecommitdiff
path: root/css/css.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2008-10-12 21:22:28 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2008-10-12 21:22:28 +0000
commitb7a1b3999e2b9790bbd070b8e0cdef3abdc6f096 (patch)
treedf39e841ab8524c2ccc8e4d69ca4088e0e4e05b4 /css/css.h
parentc1db0e90cca4a4b7fd7fc9ccbaf679554875bee1 (diff)
downloadnetsurf-b7a1b3999e2b9790bbd070b8e0cdef3abdc6f096.tar.gz
netsurf-b7a1b3999e2b9790bbd070b8e0cdef3abdc6f096.tar.bz2
Implement percentage heights for block level elements in normal flow, floats and positioned boxes. Percentage min/max-height not yet handled.
svn path=/trunk/netsurf/; revision=5550
Diffstat (limited to 'css/css.h')
-rw-r--r--css/css.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/css/css.h b/css/css.h
index a48d97ef8..b3ff34ea0 100644
--- a/css/css.h
+++ b/css/css.h
@@ -279,8 +279,12 @@ struct css_style {
enum { CSS_HEIGHT_INHERIT,
CSS_HEIGHT_AUTO,
CSS_HEIGHT_LENGTH,
+ CSS_HEIGHT_PERCENT,
CSS_HEIGHT_NOT_SET } height;
- struct css_length length;
+ union {
+ struct css_length length;
+ float percent;
+ } value;
} height;
struct {