From 2f3f03cbafb88608d4f89216da7172d3b754fbef Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 30 May 2013 23:24:07 -0700 Subject: [PATCH] Don't crash on percentage widths, instead just substitute some nonsense value. --- computed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/computed.rs b/computed.rs index 5f0d54b..973246b 100644 --- a/computed.rs +++ b/computed.rs @@ -364,7 +364,7 @@ fn convert_net_line_height_value(value: n::v::CssLineHeightValue) -> CSSValue Length { match convert_net_unit_to_length_or_percent(unit) { Left(v) => v, - Right(*) => fail!(~"unexpected percentage unit") + Right(*) => Px(100.0), // FIXME(pcwalton): fill this in. } }