mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
layout: Fix intrinsic contributions of anonymous blocks (#34719)
In order to compute the inline min-content and max-content contributions of an anonymous block, we were finding its min-content and max-content inline size with a SizeConstraint coming from the block size of the box. However, anonymous blocks do not establish a containing block for their contents, so this patch uses a SizeConstraint from the block size of the containing block. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
1157fa28b3
commit
09408ae10b
6 changed files with 91 additions and 22 deletions
13
tests/wpt/meta/MANIFEST.json
vendored
13
tests/wpt/meta/MANIFEST.json
vendored
|
@ -81587,6 +81587,19 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"intrinsic-size-with-anonymous-block.html": [
|
||||
"5ddcefbbe1d8e133a80a06e6fb6c3115e886bd89",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/CSS2/reference/ref-filled-green-100px-square.xht",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"intrinsic-size-with-negative-margins.html": [
|
||||
"93dfc3dfd770be960eec71bc00082a04e7385e97",
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue