mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Fix block SizeConstraint for replaced elements (#37758)
#37433 didn't handle intrinsic contributions. This patch computes the correct SizeConstraint to be used as the ConstraintSpace's block size when computing intrinsic inline sizes. Testing: Adding new test Fixes: #37478 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
f23e3e25b8
commit
4cd7c5196b
7 changed files with 168 additions and 33 deletions
|
@ -534,6 +534,7 @@ fn compute_inline_content_sizes_for_block_level_boxes(
|
|||
|constraint_space| {
|
||||
base.inline_content_sizes(layout_context, constraint_space, contents)
|
||||
},
|
||||
|_aspect_ratio| None,
|
||||
);
|
||||
// A block in the same BFC can overlap floats, it's not moved next to them,
|
||||
// so we shouldn't add its size to the size of the floats.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue