From 4017839fe242e1b0a5d571de2e51fbd94f12ee83 Mon Sep 17 00:00:00 2001 From: Eric Atkinson Date: Tue, 4 Jun 2013 12:07:36 -0700 Subject: [PATCH] Fix padding --- src/components/main/layout/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/main/layout/model.rs b/src/components/main/layout/model.rs index 0b654978400..37195aa757e 100644 --- a/src/components/main/layout/model.rs +++ b/src/components/main/layout/model.rs @@ -134,7 +134,7 @@ impl BoxModel { // FIXME(eatkinson): Handle 'em' and 'pt' correctly Au::from_frac_px(v) } - CSSPaddingPercentage(p) => content_box_width.scale_by(p) + CSSPaddingPercentage(p) => content_box_width.scale_by(p/100.0) } } }