summaryrefslogtreecommitdiff
path: root/test/select.c
diff options
context:
space:
mode:
authorLucas Neves <lcneves@gmail.com>2017-10-20 17:56:50 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-10-21 15:04:38 +0100
commit03448f482ab3f30f85a4557ca3ec1a249b173412 (patch)
treee1a90530e61901accf70d9d4ebd2573c133209c3 /test/select.c
parent07528c150449bbcd3eeeda450af7025164a01884 (diff)
downloadlibcss-03448f482ab3f30f85a4557ca3ec1a249b173412.tar.gz
libcss-03448f482ab3f30f85a4557ca3ec1a249b173412.tar.bz2
Tests: Fixes sizing of font-size: smaller in selection test.
Diffstat (limited to 'test/select.c')
-rw-r--r--test/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/select.c b/test/select.c
index d317696..f21d937 100644
--- a/test/select.c
+++ b/test/select.c
@@ -1643,7 +1643,7 @@ css_error compute_font_size(void *pw, const css_hint *parent, css_hint *size)
} else if (size->status == CSS_FONT_SIZE_SMALLER) {
/** \todo Step within table, if appropriate */
size->data.length.value =
- FMUL(parent_size->value, FLTTOFIX(1.2));
+ FDIV(parent_size->value, FLTTOFIX(1.2));
size->data.length.unit = parent_size->unit;
} else if (size->data.length.unit == CSS_UNIT_EM ||
size->data.length.unit == CSS_UNIT_EX) {