Floor to 0 when computing intrinsic sizes for box-sizing:border-box

This commit is contained in:
Pu Xingyu 2017-04-13 19:19:48 +08:00
parent 3011f76139
commit 754d29c899
4 changed files with 62 additions and 1 deletions

View file

@ -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);
}
}