mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Floor to 0 when computing intrinsic sizes for box-sizing:border-box
This commit is contained in:
parent
3011f76139
commit
754d29c899
4 changed files with 62 additions and 1 deletions
|
@ -937,7 +937,7 @@ impl Fragment {
|
|||
}
|
||||
|
||||
if self.style.get_position().box_sizing == box_sizing::T::border_box {
|
||||
specified -= border_padding
|
||||
specified = max(Au(0), specified - border_padding);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue