diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-23 10:13:53 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-23 10:13:53 +0100 |
commit | 4140475302ea088e5ad74ebf24c98700cf13b0fa (patch) | |
tree | 35365e517f8273e4f083c761d3ac63acc0bba2cc /src/css.hh | |
parent | 355698bd39492da925860e5331e21f251fc53e4f (diff) |
allow negative values for specific CSS properties only
This needs to be done at parser level, so that alternative settings can
overrule a faulty negative one.
Testcase:
<html>
<head>
<style type="text/css" >
#foo {padding: -1px; background-color: green}
.bar {padding: 10px}
</style>
</head>
<body>
<div id="foo" class="bar">should be green and have 10px padding</div>
</body>
</html>
Diffstat (limited to 'src/css.hh')
-rw-r--r-- | src/css.hh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -35,6 +35,7 @@ typedef enum { only because Dw cannot handle percentages in this particular case (e.g. 'margin-*-width'). */ + CSS_TYPE_SIGNED_LENGTH, /* As CSS_TYPE_LENGTH but may be negative. */ CSS_TYPE_COLOR, /* Represented as integer. */ CSS_TYPE_FONT_WEIGHT, /* this very special and only used by 'font-weight' */ |