mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Treat % as 0 for the min-content contribution of replaced elements (#32103)
`width` and `max-width` typically treat expressions with percentages as their initial value, but for the min-content contribution of replaced elements, they should instead be treated as zero. https://drafts.csswg.org/css-sizing-3/#replaced-percentage-min-contribution Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
dd9164f49a
commit
1c321a17ac
6 changed files with 87 additions and 11 deletions
|
@ -215,6 +215,7 @@ impl IndependentFormattingContext {
|
|||
containing_block,
|
||||
auto_minimum,
|
||||
auto_block_size_stretches_to_containing_block,
|
||||
self.is_replaced(),
|
||||
is_table,
|
||||
true, /* establishes_containing_block */
|
||||
|padding_border_sums| self.preferred_aspect_ratio(padding_border_sums),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue