From 9a346eeda5ae9c43219000c695f881924fad5c1d Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 4 Jul 2009 21:13:59 +0000 Subject: Compute absolute values for all length properties. Make initial border-*-color match the computed color. Compute correct value of display/float wrt position. svn path=/trunk/libcss/; revision=8317 --- include/libcss/computed.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libcss/computed.h b/include/libcss/computed.h index 0d0350e..9d7a073 100644 --- a/include/libcss/computed.h +++ b/include/libcss/computed.h @@ -421,7 +421,10 @@ static inline uint8_t css_computed_outline_width( return (bits & 7); } - return CSS_OUTLINE_WIDTH_MEDIUM; + *length = INTTOFIX(2); + *unit = CSS_UNIT_PX; + + return CSS_OUTLINE_WIDTH_WIDTH; } #undef OUTLINE_WIDTH_MASK #undef OUTLINE_WIDTH_SHIFT -- cgit v1.2.3