Add Minor fixes and tests

This commit is contained in:
Pu Xingyu 2016-07-26 00:50:35 +08:00
parent 62dd3f4df4
commit 60e2f44a19
199 changed files with 34 additions and 611 deletions

View file

@ -1102,6 +1102,8 @@ impl Fragment {
}
}
/// Returns the border width in given direction if this fragment has property
/// 'box-sizing: border-box'. The `border_padding` field should have been initialized.
pub fn box_sizing_boundary(&self, direction: Direction) -> Au {
match (self.style().get_position().box_sizing, direction) {
(box_sizing::T::border_box, Direction::Inline) => {