Auto merge of #6033 - Jinwoo-Song:boxsizing_paddingbox, r=pcwalton

Spec: http://dev.w3.org/csswg/css-ui/#valdef-box-sizing-padding-box

Currently, only Firefox is supporting this value.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6033)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-05-15 09:42:18 -05:00
commit 68d135e671
6 changed files with 27 additions and 1 deletions

View file

@ -1025,6 +1025,10 @@ impl Fragment {
}
}
pub fn padding_width(&self) -> LogicalMargin<Au> {
self.border_padding - self.border_width()
}
/// Computes the margins in the inline direction from the containing block inline-size and the
/// style. After this call, the inline direction of the `margin` field will be correct.
///