mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
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:
parent
6be403d8b4
commit
eb82161a8a
115 changed files with 244 additions and 632 deletions
|
@ -514,3 +514,21 @@
|
|||
|
||||
[Web Animations: property <width> from neutral to [min-content\] at (1.5) should be [min-content\]]
|
||||
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
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[block-aspect-ratio-056.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[block-aspect-ratio-057.tentative.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[grid-aspect-ratio-027.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-size-007.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-size-020.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-size-021.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-size-022.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-size-023.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-size-024.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-size-025.html]
|
||||
expected: FAIL
|
2
tests/wpt/meta/css/css-sizing/block-size-with-min-or-max-content-1a.html.ini
vendored
Normal file
2
tests/wpt/meta/css/css-sizing/block-size-with-min-or-max-content-1a.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
[block-size-with-min-or-max-content-1a.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[block-size-with-min-or-max-content-2.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[block-size-with-min-or-max-content-3.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[border-box-and-max-content-001.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[border-box-and-max-content-003.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[calc-margins-block.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[calc-margins-fieldset-content.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[calc-margins-fieldset-legend.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[calc-margins-flex.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[fit-content-max-inline-size.tentative.html]
|
||||
expected: FAIL
|
|
@ -1,9 +0,0 @@
|
|||
[fit-content-percentage-padding.html]
|
||||
[Initial layout]
|
||||
expected: FAIL
|
||||
|
||||
[Shrink width]
|
||||
expected: FAIL
|
||||
|
||||
[Grow width]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-percent-replaced-012.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-percent-replaced-013.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-percent-replaced-022.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[intrinsic-percent-replaced-023.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[min-content-min-width-000.html]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[percentage-min-width.html]
|
||||
[#container 1]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[auto-margins-1.html]
|
||||
[[data-expected-width\] 2]
|
||||
expected: FAIL
|
|
@ -1,27 +0,0 @@
|
|||
[block-height-001.html]
|
||||
[[data-expected-height\] 1]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 2]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 3]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 7]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 8]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 9]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 13]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 14]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 15]
|
||||
expected: FAIL
|
|
@ -1,6 +1,3 @@
|
|||
[block-height-002.tentative.html]
|
||||
[main > div > div 1]
|
||||
expected: FAIL
|
||||
|
||||
[main > div > div 2]
|
||||
expected: FAIL
|
||||
|
|
|
@ -2,17 +2,8 @@
|
|||
[.inner 1]
|
||||
expected: FAIL
|
||||
|
||||
[.inner 2]
|
||||
expected: FAIL
|
||||
|
||||
[.inner 3]
|
||||
expected: FAIL
|
||||
|
||||
[.inner 4]
|
||||
expected: FAIL
|
||||
|
||||
[.inner 5]
|
||||
expected: FAIL
|
||||
|
||||
[.inner 6]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
[content-contribution-001.html]
|
||||
[.test 1]
|
||||
expected: FAIL
|
||||
|
||||
[.test 2]
|
||||
expected: FAIL
|
||||
|
||||
[.test 5]
|
||||
expected: FAIL
|
||||
|
|
3
tests/wpt/meta/css/css-sizing/stretch/indefinite-2.html.ini
vendored
Normal file
3
tests/wpt/meta/css/css-sizing/stretch/indefinite-2.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[indefinite-2.html]
|
||||
[[data-expected-client-height\] 1]
|
||||
expected: FAIL
|
3
tests/wpt/meta/css/css-sizing/stretch/indefinite-3.html.ini
vendored
Normal file
3
tests/wpt/meta/css/css-sizing/stretch/indefinite-3.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[indefinite-3.html]
|
||||
[[data-expected-client-height\] 1]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[min-width-1.html]
|
||||
expected: FAIL
|
|
@ -1,7 +1,4 @@
|
|||
[stretch-block-size-001.html]
|
||||
[[data-expected-height\] 1]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 8]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -14,12 +11,6 @@
|
|||
[[data-expected-height\] 22]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 23]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 24]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 31]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -31,6 +22,3 @@
|
|||
|
||||
[[data-expected-height\] 45]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 46]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[stretch-max-block-size-001.html]
|
||||
[[data-expected-height\] 1]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 8]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -14,9 +11,6 @@
|
|||
[[data-expected-height\] 22]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\]:not([skip-second-pass\]) 24]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\]:not([skip-second-pass\]) 31]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -28,3 +22,6 @@
|
|||
|
||||
[[data-expected-height\]:not([skip-second-pass\]) 45]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 23]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[stretch-max-inline-size-001.html]
|
||||
[[data-expected-width\] 1]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-width\] 8]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -14,9 +11,6 @@
|
|||
[[data-expected-width\] 22]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-width\]:not([skip-second-pass\]) 24]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-width\]:not([skip-second-pass\]) 31]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -28,3 +22,6 @@
|
|||
|
||||
[[data-expected-width\]:not([skip-second-pass\]) 45]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-width\] 23]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[stretch-min-block-size-001.html]
|
||||
[[data-expected-height\] 1]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 8]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -17,12 +14,6 @@
|
|||
[[data-expected-height\] 22]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 23]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 24]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 31]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -37,6 +28,3 @@
|
|||
|
||||
[[data-expected-height\] 45]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-height\] 46]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[stretch-min-inline-size-001.html]
|
||||
[[data-expected-width\] 1]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-width\] 8]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -17,12 +14,6 @@
|
|||
[[data-expected-width\] 22]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-width\] 23]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-width\] 24]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-width\] 31]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -37,6 +28,3 @@
|
|||
|
||||
[[data-expected-width\] 45]
|
||||
expected: FAIL
|
||||
|
||||
[[data-expected-width\] 46]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[whitespace-and-break.html]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue