aboutsummaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2013-11-30 22:23:20 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2013-11-30 22:23:20 +0100
commit2a2a8ce66691f1ba310298945527d56fbd813ff8 (patch)
tree06fb3a4b712302a9c5f21e24eeff4821c1a4e868 /src/css.hh
parentaa1f70a72b20e6003761c44056698d50ca6629c6 (diff)
accept 'auto' only for CSS properties that allow it
Instead of handling the 'auto' value implicitly for all CSS properties that accept lenght types, we now accept it only for specific properties where 'auto' is valid according to CSS 2.1. This fixes an assertion with the following HTML fragment: <div style="background:auto">hello</div>
Diffstat (limited to 'src/css.hh')
-rw-r--r--src/css.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/css.hh b/src/css.hh
index 29f0b24a..a7143c27 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -37,6 +37,8 @@ typedef enum {
'margin-*-width'). */
CSS_TYPE_SIGNED_LENGTH, /* As CSS_TYPE_LENGTH but may be negative. */
CSS_TYPE_LENGTH_PERCENTAGE_NUMBER, /* <length> or <percentage>, or <number> */
+ CSS_TYPE_AUTO, /* Represented as CssLength of type
+ CSS_LENGTH_TYPE_AUTO */
CSS_TYPE_COLOR, /* Represented as integer. */
CSS_TYPE_FONT_WEIGHT, /* this very special and only used by
'font-weight' */