mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add support for 'padding-box' value for 'box-sizing' property (fixes #6032)
Spec: http://dev.w3.org/csswg/css-ui/#valdef-box-sizing-padding-box Currently, only Firefox is supporting this value.
This commit is contained in:
parent
b3b9deafa7
commit
945adabd48
6 changed files with 27 additions and 1 deletions
|
@ -999,6 +999,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.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue