summaryrefslogtreecommitdiff
path: root/source/html/css-apply.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/html/css-apply.c')
-rw-r--r--source/html/css-apply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c
index d5ceb24d..325b0dab 100644
--- a/source/html/css-apply.c
+++ b/source/html/css-apply.c
@@ -763,7 +763,7 @@ from_number(struct number number, float em, float width)
default:
case N_NUMBER: return number.value;
case N_SCALE: return number.value * em;
- case N_PERCENT: return number.value * width;
+ case N_PERCENT: return number.value * 0.01 * width;
}
}