Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit ca4e2c6

Browse files
committed
Merge pull request #12 from pcwalton/percentage-widths
Don't crash on percentage widths, instead just substitute some nonsense value
2 parents 7a59bc7 + 2f3f03c commit ca4e2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

computed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ fn convert_net_line_height_value(value: n::v::CssLineHeightValue) -> CSSValue<CS
364364
fn convert_net_unit_to_length(unit: n::t::CssUnit) -> Length {
365365
match convert_net_unit_to_length_or_percent(unit) {
366366
Left(v) => v,
367-
Right(*) => fail!(~"unexpected percentage unit")
367+
Right(*) => Px(100.0), // FIXME(pcwalton): fill this in.
368368
}
369369
}
370370

0 commit comments

Comments
 (0)