mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
layout_2020: Implement automatic minimum size of flex items
Implement the algorithm described in https://drafts.csswg.org/css-flexbox/#min-size-auto.
This commit is contained in:
parent
4e1d3a801f
commit
4b73436684
3 changed files with 73 additions and 9 deletions
|
@ -201,7 +201,7 @@ impl ReplacedContent {
|
|||
Vec2::from_physical_size(&intrinsic_size, style.writing_mode)
|
||||
}
|
||||
|
||||
fn inline_size_over_block_size_intrinsic_ratio(
|
||||
pub fn inline_size_over_block_size_intrinsic_ratio(
|
||||
&self,
|
||||
style: &ComputedValues,
|
||||
) -> Option<CSSFloat> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue