Partial implementation of keyword sizes for block layout (#34568)

Adds support for min-content, max-content, fit-content and stretch,
for block-level elements that don't establish an independent formatting
context, and for block-level elements when there is no float.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2024-12-16 13:34:57 +01:00 committed by GitHub
parent 6be403d8b4
commit eb82161a8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
115 changed files with 244 additions and 632 deletions

View file

@ -646,3 +646,21 @@
[Web Animations: property <height> from neutral to [fit-content\] at (1.5) should be [0px\]]
expected: FAIL
[CSS Transitions with transition-behavior:allow-discrete: property <height> from [max-content\] to [stretch\] at (-0.3) should be [max-content\]]
expected: FAIL
[CSS Transitions with transition-behavior:allow-discrete: property <height> from [max-content\] to [stretch\] at (0) should be [max-content\]]
expected: FAIL
[CSS Transitions with transition-behavior:allow-discrete: property <height> from [max-content\] to [stretch\] at (0.3) should be [max-content\]]
expected: FAIL
[CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <height> from [max-content\] to [stretch\] at (-0.3) should be [max-content\]]
expected: FAIL
[CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <height> from [max-content\] to [stretch\] at (0) should be [max-content\]]
expected: FAIL
[CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <height> from [max-content\] to [stretch\] at (0.3) should be [max-content\]]
expected: FAIL

View file

@ -1,13 +1,7 @@
[interpolate-size-which-value.html]
[Use the after-change value of interpolate-size: numeric-only when starting CSS transition from 100px to min-content]
expected: FAIL
[Use the non-animation value of interpolate-size: numeric-only when starting CSS animation from 100px to min-content]
expected: FAIL
[Use the after-change value of interpolate-size: numeric-only when starting CSS transition from min-content to 100px]
expected: FAIL
[Use the non-animation value of interpolate-size: numeric-only when starting CSS animation from min-content to 100px]
expected: FAIL

View file

@ -46,3 +46,12 @@
[Compositing: property <width> underlying [max-content\] from add [200px\] to add [auto\] at (0) should be [300px\]]
expected: FAIL
[Compositing: property <width> underlying [max-content\] from add [200px\] to add [auto\] at (0.5) should be [200px\]]
expected: FAIL
[Compositing: property <width> underlying [max-content\] from add [200px\] to add [auto\] at (1) should be [200px\]]
expected: FAIL
[Compositing: property <width> underlying [max-content\] from add [200px\] to add [auto\] at (1.5) should be [200px\]]
expected: FAIL

View file

@ -284,9 +284,6 @@
[CSS Transitions: property <width> from [200px\] to [fit-content\] at (0.6) should be [140px\]]
expected: FAIL
[CSS Transitions: property <width> from [200px\] to [fit-content\] at (1) should be [100px\]]
expected: FAIL
[CSS Transitions: property <width> from [200px\] to [fit-content\] at (1.5) should be [50px\]]
expected: FAIL
@ -302,9 +299,6 @@
[CSS Transitions with transition: all: property <width> from [200px\] to [fit-content\] at (0.6) should be [140px\]]
expected: FAIL
[CSS Transitions with transition: all: property <width> from [200px\] to [fit-content\] at (1) should be [100px\]]
expected: FAIL
[CSS Transitions with transition: all: property <width> from [200px\] to [fit-content\] at (1.5) should be [50px\]]
expected: FAIL
@ -458,9 +452,6 @@
[CSS Transitions: property <width> from neutral to [min-content\] at (0.6) should be [80px\]]
expected: FAIL
[CSS Transitions: property <width> from neutral to [min-content\] at (1) should be [100px\]]
expected: FAIL
[CSS Transitions: property <width> from neutral to [min-content\] at (1.5) should be [125px\]]
expected: FAIL
@ -476,9 +467,6 @@
[CSS Transitions with transition: all: property <width> from neutral to [min-content\] at (0.6) should be [80px\]]
expected: FAIL
[CSS Transitions with transition: all: property <width> from neutral to [min-content\] at (1) should be [100px\]]
expected: FAIL
[CSS Transitions with transition: all: property <width> from neutral to [min-content\] at (1.5) should be [125px\]]
expected: FAIL
@ -514,3 +502,21 @@
[Web Animations: property <width> from neutral to [min-content\] at (1.5) should be [125px\]]
expected: FAIL
[CSS Transitions with transition-behavior:allow-discrete: property <width> from [auto\] to [fit-content\] at (-0.3) should be [auto\]]
expected: FAIL
[CSS Transitions with transition-behavior:allow-discrete: property <width> from [auto\] to [fit-content\] at (0) should be [auto\]]
expected: FAIL
[CSS Transitions with transition-behavior:allow-discrete: property <width> from [auto\] to [fit-content\] at (0.3) should be [auto\]]
expected: FAIL
[CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <width> from [auto\] to [fit-content\] at (-0.3) should be [auto\]]
expected: FAIL
[CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <width> from [auto\] to [fit-content\] at (0) should be [auto\]]
expected: FAIL
[CSS Transitions with transition-property:all and transition-behavor:allow-discrete: property <width> from [auto\] to [fit-content\] at (0.3) should be [auto\]]
expected: FAIL

View file

@ -0,0 +1,2 @@
[calc-size-min-max-sizes-003.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[calc-size-min-max-sizes-006.html]
expected: FAIL