mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add Minor fixes and tests
This commit is contained in:
parent
62dd3f4df4
commit
60e2f44a19
199 changed files with 34 additions and 611 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue