mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
layout: Partial support for keyword sizes on preferred cross size (#35682)
This changes `FlexItem::content_cross_size` into `Size<Au>` to preserve keyword sizes. The calculation of the hypothetical cross size still ignores them though, that will be addressed in a follow-up. Also, browsers don't follow the spec and treat a stretch size different than a stretch alignment: the former stretches to the containing block, while the latter stretches to the line. This aligns Servo with that behavior (following the spec would require bigger refactorings), so `stretches()` is renamed to `stretches_to_line()` for clarity. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
f3e6e4f04e
commit
ff5683680f
6 changed files with 84 additions and 113 deletions
|
@ -1,3 +0,0 @@
|
|||
[orthogonal-writing-modes-and-intrinsic-sizing.html]
|
||||
[.flexbox 2]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue