mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
layout: Make intrinsic inline sizes take the value of box-sizing
into
account.
This commit is contained in:
parent
d222e3e8a3
commit
ce2e5dc707
1 changed files with 4 additions and 3 deletions
|
@ -1176,10 +1176,11 @@ impl Fragment {
|
|||
if let Some(max) = model::specified_or_none(style.max_inline_size(), Au(0)) {
|
||||
specified = min(specified, max)
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME(#2261, pcwalton): This won't work well for inlines: is this OK?
|
||||
let surrounding_inline_size = self.surrounding_intrinsic_inline_size();
|
||||
if self.style.get_position().box_sizing == box_sizing::T::border_box {
|
||||
specified -= border_padding
|
||||
}
|
||||
}
|
||||
|
||||
IntrinsicISizesContribution {
|
||||
content_intrinsic_sizes: IntrinsicISizes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue