Skip to content

Truly independent web browser

LibWeb: Import WPT coverage for additive sizing keywords

Andreas Kling251ea5f99940
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-height-composition.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-height-composition.txt
new file mode 100644
index 00000000000..e11b9cf85b5
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-height-composition.txt
@@ -0,0 +1,26 @@
+Harness status: OK
+
+Found 20 tests
+
+2 Pass
+18 Fail
+Fail Compositing CSS Animations: property <height> underlying [fit-content] from add [100px] to add [200px] at (-0.3) should be [120px]
+Fail Compositing CSS Animations: property <height> underlying [fit-content] from add [100px] to add [200px] at (0) should be [150px]
+Fail Compositing CSS Animations: property <height> underlying [fit-content] from add [100px] to add [200px] at (0.5) should be [200px]
+Fail Compositing CSS Animations: property <height> underlying [fit-content] from add [100px] to add [200px] at (1) should be [250px]
+Fail Compositing CSS Animations: property <height> underlying [fit-content] from add [100px] to add [200px] at (1.5) should be [300px]
+Fail Compositing Web Animations: property <height> underlying [fit-content] from add [100px] to add [200px] at (-0.3) should be [120px]
+Fail Compositing Web Animations: property <height> underlying [fit-content] from add [100px] to add [200px] at (0) should be [150px]
+Fail Compositing Web Animations: property <height> underlying [fit-content] from add [100px] to add [200px] at (0.5) should be [200px]
+Fail Compositing Web Animations: property <height> underlying [fit-content] from add [100px] to add [200px] at (1) should be [250px]
+Fail Compositing Web Animations: property <height> underlying [fit-content] from add [100px] to add [200px] at (1.5) should be [300px]
+Fail Compositing CSS Animations: property <height> underlying [fit-content] from add [min-content] to add [200px] at (-0.3) should be [50px]
+Pass Compositing CSS Animations: property <height> underlying [fit-content] from add [min-content] to add [200px] at (0) should be [50px]
+Fail Compositing CSS Animations: property <height> underlying [fit-content] from add [min-content] to add [200px] at (0.5) should be [250px]
+Fail Compositing CSS Animations: property <height> underlying [fit-content] from add [min-content] to add [200px] at (1) should be [250px]
+Fail Compositing CSS Animations: property <height> underlying [fit-content] from add [min-content] to add [200px] at (1.5) should be [250px]
+Fail Compositing Web Animations: property <height> underlying [fit-content] from add [min-content] to add [200px] at (-0.3) should be [50px]
+Pass Compositing Web Animations: property <height> underlying [fit-content] from add [min-content] to add [200px] at (0) should be [50px]
+Fail Compositing Web Animations: property <height> underlying [fit-content] from add [min-content] to add [200px] at (0.5) should be [250px]
+Fail Compositing Web Animations: property <height> underlying [fit-content] from add [min-content] to add [200px] at (1) should be [250px]
+Fail Compositing Web Animations: property <height> underlying [fit-content] from add [min-content] to add [200px] at (1.5) should be [250px]
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-height-composition.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-height-composition.txt
new file mode 100644
index 00000000000..0c26e9ba9dd
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-height-composition.txt
@@ -0,0 +1,25 @@
+Harness status: OK
+
+Found 20 tests
+
+20 Fail
+Fail Compositing CSS Animations: property <max-height> underlying [fit-content] from add [100px] to add [200px] at (-0.3) should be [calc-size(fit-content, (100px + size) * 1.3 + (200px + size) * -0.3)]
+Fail Compositing CSS Animations: property <max-height> underlying [fit-content] from add [100px] to add [200px] at (0) should be [calc-size(fit-content, (100px + size) * 1 + (200px + size) * 0)]
+Fail Compositing CSS Animations: property <max-height> underlying [fit-content] from add [100px] to add [200px] at (0.5) should be [calc-size(fit-content, (100px + size) * 0.5 + (200px + size) * 0.5)]
+Fail Compositing CSS Animations: property <max-height> underlying [fit-content] from add [100px] to add [200px] at (1) should be [calc-size(fit-content, (100px + size) * 0 + (200px + size) * 1)]
+Fail Compositing CSS Animations: property <max-height> underlying [fit-content] from add [100px] to add [200px] at (1.5) should be [calc-size(fit-content, (100px + size) * -0.5 + (200px + size) * 1.5)]
+Fail Compositing Web Animations: property <max-height> underlying [fit-content] from add [100px] to add [200px] at (-0.3) should be [calc-size(fit-content, (100px + size) * 1.3 + (200px + size) * -0.3)]
+Fail Compositing Web Animations: property <max-height> underlying [fit-content] from add [100px] to add [200px] at (0) should be [calc-size(fit-content, (100px + size) * 1 + (200px + size) * 0)]
+Fail Compositing Web Animations: property <max-height> underlying [fit-content] from add [100px] to add [200px] at (0.5) should be [calc-size(fit-content, (100px + size) * 0.5 + (200px + size) * 0.5)]
+Fail Compositing Web Animations: property <max-height> underlying [fit-content] from add [100px] to add [200px] at (1) should be [calc-size(fit-content, (100px + size) * 0 + (200px + size) * 1)]
+Fail Compositing Web Animations: property <max-height> underlying [fit-content] from add [100px] to add [200px] at (1.5) should be [calc-size(fit-content, (100px + size) * -0.5 + (200px + size) * 1.5)]
+Fail Compositing CSS Animations: property <max-height> underlying [fit-content] from add [min-content] to add [200px] at (-0.3) should be [min-content]
+Fail Compositing CSS Animations: property <max-height> underlying [fit-content] from add [min-content] to add [200px] at (0) should be [min-content]
+Fail Compositing CSS Animations: property <max-height> underlying [fit-content] from add [min-content] to add [200px] at (0.5) should be [calc-size(fit-content, 200px + size)]
+Fail Compositing CSS Animations: property <max-height> underlying [fit-content] from add [min-content] to add [200px] at (1) should be [calc-size(fit-content, 200px + size)]
+Fail Compositing CSS Animations: property <max-height> underlying [fit-content] from add [min-content] to add [200px] at (1.5) should be [calc-size(fit-content, 200px + size)]
+Fail Compositing Web Animations: property <max-height> underlying [fit-content] from add [min-content] to add [200px] at (-0.3) should be [min-content]
+Fail Compositing Web Animations: property <max-height> underlying [fit-content] from add [min-content] to add [200px] at (0) should be [min-content]
+Fail Compositing Web Animations: property <max-height> underlying [fit-content] from add [min-content] to add [200px] at (0.5) should be [calc-size(fit-content, 200px + size)]
+Fail Compositing Web Animations: property <max-height> underlying [fit-content] from add [min-content] to add [200px] at (1) should be [calc-size(fit-content, 200px + size)]
+Fail Compositing Web Animations: property <max-height> underlying [fit-content] from add [min-content] to add [200px] at (1.5) should be [calc-size(fit-content, 200px + size)]
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-width-composition.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-width-composition.txt
new file mode 100644
index 00000000000..8a7247e3a25
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-width-composition.txt
@@ -0,0 +1,35 @@
+Harness status: OK
+
+Found 30 tests
+
+30 Fail
+Fail Compositing CSS Animations: property <max-width> underlying [100px] from add [100px] to add [fit-content] at (-0.3) should be [calc-size(fit-content, 260px + (100px + size) * -0.3)]
+Fail Compositing CSS Animations: property <max-width> underlying [100px] from add [100px] to add [fit-content] at (0) should be [calc-size(fit-content, 200px + (100px + size) * 0)]
+Fail Compositing CSS Animations: property <max-width> underlying [100px] from add [100px] to add [fit-content] at (0.5) should be [calc-size(fit-content, 100px + (100px + size) * 0.5)]
+Fail Compositing CSS Animations: property <max-width> underlying [100px] from add [100px] to add [fit-content] at (1) should be [calc-size(fit-content, 0px + (100px + size) * 1)]
+Fail Compositing CSS Animations: property <max-width> underlying [100px] from add [100px] to add [fit-content] at (1.5) should be [calc-size(fit-content, -100px + (100px + size) * 1.5)]
+Fail Compositing Web Animations: property <max-width> underlying [100px] from add [100px] to add [fit-content] at (-0.3) should be [calc-size(fit-content, 260px + (100px + size) * -0.3)]
+Fail Compositing Web Animations: property <max-width> underlying [100px] from add [100px] to add [fit-content] at (0) should be [calc-size(fit-content, 200px + (100px + size) * 0)]
+Fail Compositing Web Animations: property <max-width> underlying [100px] from add [100px] to add [fit-content] at (0.5) should be [calc-size(fit-content, 100px + (100px + size) * 0.5)]
+Fail Compositing Web Animations: property <max-width> underlying [100px] from add [100px] to add [fit-content] at (1) should be [calc-size(fit-content, 0px + (100px + size) * 1)]
+Fail Compositing Web Animations: property <max-width> underlying [100px] from add [100px] to add [fit-content] at (1.5) should be [calc-size(fit-content, -100px + (100px + size) * 1.5)]
+Fail Compositing CSS Animations: property <max-width> underlying [100px] from add [fit-content] to add [max-content] at (-0.3) should be [calc-size(fit-content, 100px + size)]
+Fail Compositing CSS Animations: property <max-width> underlying [100px] from add [fit-content] to add [max-content] at (0) should be [calc-size(fit-content, 100px + size)]
+Fail Compositing CSS Animations: property <max-width> underlying [100px] from add [fit-content] to add [max-content] at (0.5) should be [calc-size(max-content, 100px + size)]
+Fail Compositing CSS Animations: property <max-width> underlying [100px] from add [fit-content] to add [max-content] at (1) should be [calc-size(max-content, 100px + size)]
+Fail Compositing CSS Animations: property <max-width> underlying [100px] from add [fit-content] to add [max-content] at (1.5) should be [calc-size(max-content, 100px + size)]
+Fail Compositing Web Animations: property <max-width> underlying [100px] from add [fit-content] to add [max-content] at (-0.3) should be [calc-size(fit-content, 100px + size)]
+Fail Compositing Web Animations: property <max-width> underlying [100px] from add [fit-content] to add [max-content] at (0) should be [calc-size(fit-content, 100px + size)]
+Fail Compositing Web Animations: property <max-width> underlying [100px] from add [fit-content] to add [max-content] at (0.5) should be [calc-size(max-content, 100px + size)]
+Fail Compositing Web Animations: property <max-width> underlying [100px] from add [fit-content] to add [max-content] at (1) should be [calc-size(max-content, 100px + size)]
+Fail Compositing Web Animations: property <max-width> underlying [100px] from add [fit-content] to add [max-content] at (1.5) should be [calc-size(max-content, 100px + size)]
+Fail Compositing CSS Animations: property <max-width> underlying [max-content] from add [100px] to add [min-content] at (-0.3) should be [calc-size(max-content, 100px + size)]
+Fail Compositing CSS Animations: property <max-width> underlying [max-content] from add [100px] to add [min-content] at (0) should be [calc-size(max-content, 100px + size)]
+Fail Compositing CSS Animations: property <max-width> underlying [max-content] from add [100px] to add [min-content] at (0.5) should be [min-content]
+Fail Compositing CSS Animations: property <max-width> underlying [max-content] from add [100px] to add [min-content] at (1) should be [min-content]
+Fail Compositing CSS Animations: property <max-width> underlying [max-content] from add [100px] to add [min-content] at (1.5) should be [min-content]
+Fail Compositing Web Animations: property <max-width> underlying [max-content] from add [100px] to add [min-content] at (-0.3) should be [calc-size(max-content, 100px + size)]
+Fail Compositing Web Animations: property <max-width> underlying [max-content] from add [100px] to add [min-content] at (0) should be [calc-size(max-content, 100px + size)]
+Fail Compositing Web Animations: property <max-width> underlying [max-content] from add [100px] to add [min-content] at (0.5) should be [min-content]
+Fail Compositing Web Animations: property <max-width> underlying [max-content] from add [100px] to add [min-content] at (1) should be [min-content]
+Fail Compositing Web Animations: property <max-width> underlying [max-content] from add [100px] to add [min-content] at (1.5) should be [min-content]
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-height-composition.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-height-composition.txt
new file mode 100644
index 00000000000..4b643e2016c
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-height-composition.txt
@@ -0,0 +1,25 @@
+Harness status: OK
+
+Found 20 tests
+
+20 Fail
+Fail Compositing CSS Animations: property <min-height> underlying [fit-content] from add [100px] to add [200px] at (-0.3) should be [calc-size(fit-content, (100px + size) * 1.3 + (200px + size) * -0.3)]
+Fail Compositing CSS Animations: property <min-height> underlying [fit-content] from add [100px] to add [200px] at (0) should be [calc-size(fit-content, (100px + size) * 1 + (200px + size) * 0)]
+Fail Compositing CSS Animations: property <min-height> underlying [fit-content] from add [100px] to add [200px] at (0.5) should be [calc-size(fit-content, (100px + size) * 0.5 + (200px + size) * 0.5)]
+Fail Compositing CSS Animations: property <min-height> underlying [fit-content] from add [100px] to add [200px] at (1) should be [calc-size(fit-content, (100px + size) * 0 + (200px + size) * 1)]
+Fail Compositing CSS Animations: property <min-height> underlying [fit-content] from add [100px] to add [200px] at (1.5) should be [calc-size(fit-content, (100px + size) * -0.5 + (200px + size) * 1.5)]
+Fail Compositing Web Animations: property <min-height> underlying [fit-content] from add [100px] to add [200px] at (-0.3) should be [calc-size(fit-content, (100px + size) * 1.3 + (200px + size) * -0.3)]
+Fail Compositing Web Animations: property <min-height> underlying [fit-content] from add [100px] to add [200px] at (0) should be [calc-size(fit-content, (100px + size) * 1 + (200px + size) * 0)]
+Fail Compositing Web Animations: property <min-height> underlying [fit-content] from add [100px] to add [200px] at (0.5) should be [calc-size(fit-content, (100px + size) * 0.5 + (200px + size) * 0.5)]
+Fail Compositing Web Animations: property <min-height> underlying [fit-content] from add [100px] to add [200px] at (1) should be [calc-size(fit-content, (100px + size) * 0 + (200px + size) * 1)]
+Fail Compositing Web Animations: property <min-height> underlying [fit-content] from add [100px] to add [200px] at (1.5) should be [calc-size(fit-content, (100px + size) * -0.5 + (200px + size) * 1.5)]
+Fail Compositing CSS Animations: property <min-height> underlying [fit-content] from add [200px] to add [min-content] at (-0.3) should be [calc-size(fit-content, 200px + size)]
+Fail Compositing CSS Animations: property <min-height> underlying [fit-content] from add [200px] to add [min-content] at (0) should be [calc-size(fit-content, 200px + size)]
+Fail Compositing CSS Animations: property <min-height> underlying [fit-content] from add [200px] to add [min-content] at (0.5) should be [min-content]
+Fail Compositing CSS Animations: property <min-height> underlying [fit-content] from add [200px] to add [min-content] at (1) should be [min-content]
+Fail Compositing CSS Animations: property <min-height> underlying [fit-content] from add [200px] to add [min-content] at (1.5) should be [min-content]
+Fail Compositing Web Animations: property <min-height> underlying [fit-content] from add [200px] to add [min-content] at (-0.3) should be [calc-size(fit-content, 200px + size)]
+Fail Compositing Web Animations: property <min-height> underlying [fit-content] from add [200px] to add [min-content] at (0) should be [calc-size(fit-content, 200px + size)]
+Fail Compositing Web Animations: property <min-height> underlying [fit-content] from add [200px] to add [min-content] at (0.5) should be [min-content]
+Fail Compositing Web Animations: property <min-height> underlying [fit-content] from add [200px] to add [min-content] at (1) should be [min-content]
+Fail Compositing Web Animations: property <min-height> underlying [fit-content] from add [200px] to add [min-content] at (1.5) should be [min-content]
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-width-composition.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-width-composition.txt
new file mode 100644
index 00000000000..585307f2afd
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-width-composition.txt
@@ -0,0 +1,36 @@
+Harness status: OK
+
+Found 30 tests
+
+10 Pass
+20 Fail
+Fail Compositing CSS Animations: property <min-width> underlying [100px] from add [max-content] to add [100px] at (-0.3) should be [calc-size(max-content, (100px + size) * 1.3 + -60px)]
+Fail Compositing CSS Animations: property <min-width> underlying [100px] from add [max-content] to add [100px] at (0) should be [calc-size(max-content, (100px + size) * 1 + 0px)]
+Fail Compositing CSS Animations: property <min-width> underlying [100px] from add [max-content] to add [100px] at (0.5) should be [calc-size(max-content, (100px + size) * 0.5 + 100px)]
+Fail Compositing CSS Animations: property <min-width> underlying [100px] from add [max-content] to add [100px] at (1) should be [calc-size(max-content, (100px + size) * 0 + 200px)]
+Fail Compositing CSS Animations: property <min-width> underlying [100px] from add [max-content] to add [100px] at (1.5) should be [calc-size(max-content, (100px + size) * -0.5 + 300px)]
+Fail Compositing Web Animations: property <min-width> underlying [100px] from add [max-content] to add [100px] at (-0.3) should be [calc-size(max-content, (100px + size) * 1.3 + -60px)]
+Fail Compositing Web Animations: property <min-width> underlying [100px] from add [max-content] to add [100px] at (0) should be [calc-size(max-content, (100px + size) * 1 + 0px)]
+Fail Compositing Web Animations: property <min-width> underlying [100px] from add [max-content] to add [100px] at (0.5) should be [calc-size(max-content, (100px + size) * 0.5 + 100px)]
+Fail Compositing Web Animations: property <min-width> underlying [100px] from add [max-content] to add [100px] at (1) should be [calc-size(max-content, (100px + size) * 0 + 200px)]
+Fail Compositing Web Animations: property <min-width> underlying [100px] from add [max-content] to add [100px] at (1.5) should be [calc-size(max-content, (100px + size) * -0.5 + 300px)]
+Pass Compositing CSS Animations: property <min-width> underlying [min-content] from add [fit-content] to add [max-content] at (-0.3) should be [fit-content]
+Pass Compositing CSS Animations: property <min-width> underlying [min-content] from add [fit-content] to add [max-content] at (0) should be [fit-content]
+Pass Compositing CSS Animations: property <min-width> underlying [min-content] from add [fit-content] to add [max-content] at (0.5) should be [max-content]
+Pass Compositing CSS Animations: property <min-width> underlying [min-content] from add [fit-content] to add [max-content] at (1) should be [max-content]
+Pass Compositing CSS Animations: property <min-width> underlying [min-content] from add [fit-content] to add [max-content] at (1.5) should be [max-content]
+Pass Compositing Web Animations: property <min-width> underlying [min-content] from add [fit-content] to add [max-content] at (-0.3) should be [fit-content]
+Pass Compositing Web Animations: property <min-width> underlying [min-content] from add [fit-content] to add [max-content] at (0) should be [fit-content]
+Pass Compositing Web Animations: property <min-width> underlying [min-content] from add [fit-content] to add [max-content] at (0.5) should be [max-content]
+Pass Compositing Web Animations: property <min-width> underlying [min-content] from add [fit-content] to add [max-content] at (1) should be [max-content]
+Pass Compositing Web Animations: property <min-width> underlying [min-content] from add [fit-content] to add [max-content] at (1.5) should be [max-content]
+Fail Compositing CSS Animations: property <min-width> underlying [max-content] from add [100px] to add [min-content] at (-0.3) should be [calc-size(max-content, 100px + size)]
+Fail Compositing CSS Animations: property <min-width> underlying [max-content] from add [100px] to add [min-content] at (0) should be [calc-size(max-content, 100px + size)]
+Fail Compositing CSS Animations: property <min-width> underlying [max-content] from add [100px] to add [min-content] at (0.5) should be [min-content]
+Fail Compositing CSS Animations: property <min-width> underlying [max-content] from add [100px] to add [min-content] at (1) should be [min-content]
+Fail Compositing CSS Animations: property <min-width> underlying [max-content] from add [100px] to add [min-content] at (1.5) should be [min-content]
+Fail Compositing Web Animations: property <min-width> underlying [max-content] from add [100px] to add [min-content] at (-0.3) should be [calc-size(max-content, 100px + size)]
+Fail Compositing Web Animations: property <min-width> underlying [max-content] from add [100px] to add [min-content] at (0) should be [calc-size(max-content, 100px + size)]
+Fail Compositing Web Animations: property <min-width> underlying [max-content] from add [100px] to add [min-content] at (0.5) should be [min-content]
+Fail Compositing Web Animations: property <min-width> underlying [max-content] from add [100px] to add [min-content] at (1) should be [min-content]
+Fail Compositing Web Animations: property <min-width> underlying [max-content] from add [100px] to add [min-content] at (1.5) should be [min-content]
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-width-composition.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-width-composition.txt
new file mode 100644
index 00000000000..64c153c7b13
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/calc-size/animation/interpolate-size-width-composition.txt
@@ -0,0 +1,36 @@
+Harness status: OK
+
+Found 30 tests
+
+8 Pass
+22 Fail
+Fail Compositing CSS Animations: property <width> underlying [100px] from add [100px] to add [auto] at (-0.3) should be [170px]
+Pass Compositing CSS Animations: property <width> underlying [100px] from add [100px] to add [auto] at (0) should be [200px]
+Fail Compositing CSS Animations: property <width> underlying [100px] from add [100px] to add [auto] at (0.5) should be [250px]
+Fail Compositing CSS Animations: property <width> underlying [100px] from add [100px] to add [auto] at (1) should be [300px]
+Fail Compositing CSS Animations: property <width> underlying [100px] from add [100px] to add [auto] at (1.5) should be [350px]
+Fail Compositing Web Animations: property <width> underlying [100px] from add [100px] to add [auto] at (-0.3) should be [170px]
+Pass Compositing Web Animations: property <width> underlying [100px] from add [100px] to add [auto] at (0) should be [200px]
+Fail Compositing Web Animations: property <width> underlying [100px] from add [100px] to add [auto] at (0.5) should be [250px]
+Fail Compositing Web Animations: property <width> underlying [100px] from add [100px] to add [auto] at (1) should be [300px]
+Fail Compositing Web Animations: property <width> underlying [100px] from add [100px] to add [auto] at (1.5) should be [350px]
+Fail Compositing CSS Animations: property <width> underlying [100px] from add [fit-content] to add [auto] at (-0.3) should be [200px]
+Fail Compositing CSS Animations: property <width> underlying [100px] from add [fit-content] to add [auto] at (0) should be [200px]
+Fail Compositing CSS Animations: property <width> underlying [100px] from add [fit-content] to add [auto] at (0.5) should be [300px]
+Fail Compositing CSS Animations: property <width> underlying [100px] from add [fit-content] to add [auto] at (1) should be [300px]
+Fail Compositing CSS Animations: property <width> underlying [100px] from add [fit-content] to add [auto] at (1.5) should be [300px]
+Fail Compositing Web Animations: property <width> underlying [100px] from add [fit-content] to add [auto] at (-0.3) should be [200px]
+Fail Compositing Web Animations: property <width> underlying [100px] from add [fit-content] to add [auto] at (0) should be [200px]
+Fail Compositing Web Animations: property <width> underlying [100px] from add [fit-content] to add [auto] at (0.5) should be [300px]
+Fail Compositing Web Animations: property <width> underlying [100px] from add [fit-content] to add [auto] at (1) should be [300px]
+Fail Compositing Web Animations: property <width> underlying [100px] from add [fit-content] to add [auto] at (1.5) should be [300px]
+Fail Compositing CSS Animations: property <width> underlying [max-content] from add [200px] to add [auto] at (-0.3) should be [300px]
+Fail Compositing CSS Animations: property <width> underlying [max-content] from add [200px] to add [auto] at (0) should be [300px]
+Pass Compositing CSS Animations: property <width> underlying [max-content] from add [200px] to add [auto] at (0.5) should be [200px]
+Pass Compositing CSS Animations: property <width> underlying [max-content] from add [200px] to add [auto] at (1) should be [200px]
+Pass Compositing CSS Animations: property <width> underlying [max-content] from add [200px] to add [auto] at (1.5) should be [200px]
+Fail Compositing Web Animations: property <width> underlying [max-content] from add [200px] to add [auto] at (-0.3) should be [300px]
+Fail Compositing Web Animations: property <width> underlying [max-content] from add [200px] to add [auto] at (0) should be [300px]
+Pass Compositing Web Animations: property <width> underlying [max-content] from add [200px] to add [auto] at (0.5) should be [200px]
+Pass Compositing Web Animations: property <width> underlying [max-content] from add [200px] to add [auto] at (1) should be [200px]
+Pass Compositing Web Animations: property <width> underlying [max-content] from add [200px] to add [auto] at (1.5) should be [200px]
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-height-composition.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-height-composition.html
new file mode 100644
index 00000000000..b47ba47369e
--- /dev/null
+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-height-composition.html
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<title>height composition with interpolate-size: allow-keywords</title>
+<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#propdef-height">
+<link rel="help" href="https://drafts.csswg.org/css-values-5/#interpolate-size">
+
+<script src="../../../../resources/testharness.js"></script>
+<script src="../../../../resources/testharnessreport.js"></script>
+<script src="../../../../css/support/interpolation-testcommon.js"></script>
+<style>
+:root {
+ interpolate-size: allow-keywords;
+}
+.parent {
+ height: 200px;
+}
+.target {
+ width: 100px;
+ height: 150px;
+}
+.target::before {
+ display: block;
+ content: "";
+ width: 100px;
+ height: 50px;
+}
+</style>
+
+<body>
+<script>
+test_composition({
+ property: 'height',
+ underlying: 'fit-content', /* 50px */
+ addFrom: '100px',
+ addTo: '200px',
+}, [
+ {at: -0.3, expect: '120px'},
+ {at: 0, expect: '150px'},
+ {at: 0.5, expect: '200px'},
+ {at: 1, expect: '250px'},
+ {at: 1.5, expect: '300px'},
+]);
+
+test_composition({
+ property: 'height',
+ underlying: 'fit-content',
+ addFrom: 'min-content', /* min-content is 50px, fit-content is ignored
+ because min-content and fit-content are not
+ compatible */
+ addTo: '200px', /* combines with fit-content (50px) to be 250px */
+ /* the composited from value is a min-content size and the composited
+ to value is a fit-content size, so they cannot be interpolated,
+ and the animation is discrete */
+}, [
+ {at: -0.3, expect: '50px'},
+ {at: 0, expect: '50px'},
+ {at: 0.5, expect: '250px'},
+ {at: 1, expect: '250px'},
+ {at: 1.5, expect: '250px'},
+]);
+</script>
+</body>
diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-height-composition.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-height-composition.html
new file mode 100644
index 00000000000..ed33d8831e4
--- /dev/null
+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-height-composition.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<title>max-height composition with interpolate-size: allow-keywords</title>
+<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#propdef-max-height">
+<link rel="help" href="https://drafts.csswg.org/css-values-5/#interpolate-size">
+
+<script src="../../../../resources/testharness.js"></script>
+<script src="../../../../resources/testharnessreport.js"></script>
+<script src="../../../../css/support/interpolation-testcommon.js"></script>
+<style>
+:root {
+ interpolate-size: allow-keywords;
+}
+.parent {
+ height: 200px;
+}
+.target {
+ width: 100px;
+ height: 150px;
+}
+.target::before {
+ display: block;
+ content: "";
+ width: 100px;
+ height: 50px;
+}
+</style>
+
+<body>
+<script>
+
+// TODO(https://issues.chromium.org/issues/40339056): The specific
+// syntax details of these expectations probably need further review to
+// check against the calc() simplification rules and other parts of the
+// specification.
+
+test_composition({
+ property: 'max-height',
+ underlying: 'fit-content', /* 50px */
+ addFrom: '100px',
+ addTo: '200px',
+}, [
+ {at: -0.3, expect: 'calc-size(fit-content, (100px + size) * 1.3 + (200px + size) * -0.3)'},
+ {at: 0, expect: 'calc-size(fit-content, (100px + size) * 1 + (200px + size) * 0)'},
+ {at: 0.5, expect: 'calc-size(fit-content, (100px + size) * 0.5 + (200px + size) * 0.5)'},
+ {at: 1, expect: 'calc-size(fit-content, (100px + size) * 0 + (200px + size) * 1)'},
+ {at: 1.5, expect: 'calc-size(fit-content, (100px + size) * -0.5 + (200px + size) * 1.5)'},
+]);
+
+test_composition({
+ property: 'max-height',
+ underlying: 'fit-content', /* 50px */
+ addFrom: 'min-content', /* 50px (fit-content is ignored) */
+ addTo: '200px', /* adds to 250px, can't interpolate with from */
+}, [
+ {at: -0.3, expect: 'min-content'},
+ {at: 0, expect: 'min-content'},
+ {at: 0.5, expect: 'calc-size(fit-content, 200px + size)'},
+ {at: 1, expect: 'calc-size(fit-content, 200px + size)'},
+ {at: 1.5, expect: 'calc-size(fit-content, 200px + size)'},
+]);
+</script>
+</body>
diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-width-composition.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-width-composition.html
new file mode 100644
index 00000000000..0cab08d0733
--- /dev/null
+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-max-width-composition.html
@@ -0,0 +1,76 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<title>max-width composition with interpolate-size: allow-keywords</title>
+<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#propdef-max-width">
+<link rel="help" href="https://drafts.csswg.org/css-values-5/#interpolate-size">
+
+<script src="../../../../resources/testharness.js"></script>
+<script src="../../../../resources/testharnessreport.js"></script>
+<script src="../../../../css/support/interpolation-testcommon.js"></script>
+<style>
+:root {
+ interpolate-size: allow-keywords;
+}
+.parent {
+ width: 200px;
+}
+.target {
+ width: 100px;
+ height: 150px;
+}
+.target::before {
+ display: block;
+ content: "";
+ width: 100px;
+ height: 50px;
+}
+</style>
+
+<body>
+<script>
+
+// TODO(https://issues.chromium.org/issues/40339056): The specific
+// syntax details of these expectations probably need further review to
+// check against the calc() simplification rules and other parts of the
+// specification.
+
+test_composition({
+ property: 'max-width',
+ underlying: '100px',
+ addFrom: '100px',
+ addTo: 'fit-content',
+}, [
+ {at: -0.3, expect: 'calc-size(fit-content, 260px + (100px + size) * -0.3)'},
+ {at: 0, expect: 'calc-size(fit-content, 200px + (100px + size) * 0)'},
+ {at: 0.5, expect: 'calc-size(fit-content, 100px + (100px + size) * 0.5)'},
+ {at: 1, expect: 'calc-size(fit-content, 0px + (100px + size) * 1)'},
+ {at: 1.5, expect: 'calc-size(fit-content, -100px + (100px + size) * 1.5)'},
+]);
+
+test_composition({
+ property: 'max-width',
+ underlying: '100px',
+ addFrom: 'fit-content', /* not compatible */
+ addTo: 'max-content', /* not compatible */
+}, [
+ {at: -0.3, expect: 'calc-size(fit-content, 100px + size)'},
+ {at: 0, expect: 'calc-size(fit-content, 100px + size)'},
+ {at: 0.5, expect: 'calc-size(max-content, 100px + size)'},
+ {at: 1, expect: 'calc-size(max-content, 100px + size)'},
+ {at: 1.5, expect: 'calc-size(max-content, 100px + size)'},
+]);
+
+test_composition({
+ property: 'max-width',
+ underlying: 'max-content',
+ addFrom: '100px',
+ addTo: 'min-content',
+}, [
+ {at: -0.3, expect: 'calc-size(max-content, 100px + size)'},
+ {at: 0, expect: 'calc-size(max-content, 100px + size)'},
+ {at: 0.5, expect: 'min-content'},
+ {at: 1, expect: 'min-content'},
+ {at: 1.5, expect: 'min-content'},
+]);
+</script>
+</body>
diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-height-composition.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-height-composition.html
new file mode 100644
index 00000000000..b49fa38d054
--- /dev/null
+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-height-composition.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<title>min-height composition with interpolate-size: allow-keywords</title>
+<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#propdef-min-height">
+<link rel="help" href="https://drafts.csswg.org/css-values-5/#interpolate-size">
+
+<script src="../../../../resources/testharness.js"></script>
+<script src="../../../../resources/testharnessreport.js"></script>
+<script src="../../../../css/support/interpolation-testcommon.js"></script>
+<style>
+:root {
+ interpolate-size: allow-keywords;
+}
+.parent {
+ height: 200px;
+}
+.target {
+ width: 100px;
+ height: 150px;
+}
+.target::before {
+ display: block;
+ content: "";
+ width: 100px;
+ height: 50px;
+}
+</style>
+
+<body>
+<script>
+
+// TODO(https://issues.chromium.org/issues/40339056): The specific
+// syntax details of these expectations probably need further review to
+// check against the calc() simplification rules and other parts of the
+// specification.
+
+test_composition({
+ property: 'min-height',
+ underlying: 'fit-content', /* 50px */
+ addFrom: '100px',
+ addTo: '200px',
+}, [
+ {at: -0.3, expect: 'calc-size(fit-content, (100px + size) * 1.3 + (200px + size) * -0.3)'},
+ {at: 0, expect: 'calc-size(fit-content, (100px + size) * 1 + (200px + size) * 0)'},
+ {at: 0.5, expect: 'calc-size(fit-content, (100px + size) * 0.5 + (200px + size) * 0.5)'},
+ {at: 1, expect: 'calc-size(fit-content, (100px + size) * 0 + (200px + size) * 1)'},
+ {at: 1.5, expect: 'calc-size(fit-content, (100px + size) * -0.5 + (200px + size) * 1.5)'},
+]);
+
+test_composition({
+ property: 'min-height',
+ underlying: 'fit-content',
+ addFrom: '200px',
+ addTo: 'min-content', /* 50px */
+}, [
+ {at: -0.3, expect: 'calc-size(fit-content, 200px + size)'},
+ {at: 0, expect: 'calc-size(fit-content, 200px + size)'},
+ {at: 0.5, expect: 'min-content'},
+ {at: 1, expect: 'min-content'},
+ {at: 1.5, expect: 'min-content'},
+]);
+</script>
+</body>
diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-width-composition.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-width-composition.html
new file mode 100644
index 00000000000..c4c74e68891
--- /dev/null
+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-min-width-composition.html
@@ -0,0 +1,77 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<title>min-width composition with interpolate-size: allow-keywords</title>
+<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#propdef-min-width">
+<link rel="help" href="https://drafts.csswg.org/css-values-5/#interpolate-size">
+
+<script src="../../../../resources/testharness.js"></script>
+<script src="../../../../resources/testharnessreport.js"></script>
+<script src="../../../../css/support/interpolation-testcommon.js"></script>
+<style>
+:root {
+ interpolate-size: allow-keywords;
+}
+.parent {
+ width: 200px;
+}
+.target {
+ width: 100px;
+ height: 150px;
+}
+.target::before {
+ display: block;
+ content: "";
+ width: 100px;
+ height: 50px;
+}
+</style>
+
+<body>
+<script>
+
+// TODO(https://issues.chromium.org/issues/40339056): The specific
+// syntax details of these expectations probably need further review to
+// check against the calc() simplification rules and other parts of the
+// specification.
+
+test_composition({
+ property: 'min-width',
+ underlying: '100px',
+ addFrom: 'max-content',
+ addTo: '100px',
+}, [
+ {at: -0.3, expect: 'calc-size(max-content, (100px + size) * 1.3 + -60px)'},
+ {at: 0, expect: 'calc-size(max-content, (100px + size) * 1 + 0px)'},
+ {at: 0.5, expect: 'calc-size(max-content, (100px + size) * 0.5 + 100px)'},
+ {at: 1, expect: 'calc-size(max-content, (100px + size) * 0 + 200px)'},
+ {at: 1.5, expect: 'calc-size(max-content, (100px + size) * -0.5 + 300px)'},
+]);
+
+test_composition({
+ property: 'min-width',
+ underlying: 'min-content', /* not compatible */
+ addFrom: 'fit-content', /* not compatible */
+ addTo: 'max-content', /* not compatible */
+}, [
+ {at: -0.3, expect: 'fit-content'},
+ {at: 0, expect: 'fit-content'},
+ {at: 0.5, expect: 'max-content'},
+ {at: 1, expect: 'max-content'},
+ {at: 1.5, expect: 'max-content'},
+]);
+
+test_composition({
+ property: 'min-width',
+ underlying: 'max-content',
+ addFrom: '100px', /* composites to calc-size(max-content, 100px + size) */
+ addTo: 'min-content', /* underlying value ignored when compositing since not compatible */
+ /* min-content and max-content values cannot interpolate, so they animate discretely */
+}, [
+ {at: -0.3, expect: 'calc-size(max-content, 100px + size)'},
+ {at: 0, expect: 'calc-size(max-content, 100px + size)'},
+ {at: 0.5, expect: 'min-content'},
+ {at: 1, expect: 'min-content'},
+ {at: 1.5, expect: 'min-content'},
+]);
+</script>
+</body>
diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-width-composition.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-width-composition.html
new file mode 100644
index 00000000000..d36a586d6c3
--- /dev/null
+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/calc-size/animation/interpolate-size-width-composition.html
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<title>width composition with interpolate-size: allow-keywords</title>
+<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#propdef-width">
+<link rel="help" href="https://drafts.csswg.org/css-values-5/#interpolate-size">
+
+<script src="../../../../resources/testharness.js"></script>
+<script src="../../../../resources/testharnessreport.js"></script>
+<script src="../../../../css/support/interpolation-testcommon.js"></script>
+<style>
+:root {
+ interpolate-size: allow-keywords;
+}
+.parent {
+ width: 200px;
+}
+.target {
+ width: 100px;
+ height: 150px;
+}
+.target::before {
+ display: block;
+ content: "";
+ width: 100px;
+ height: 50px;
+}
+</style>
+
+<body>
+<script>
+test_composition({
+ property: 'width',
+ underlying: '100px',
+ addFrom: '100px',
+ addTo: 'auto', /* 200px */
+}, [
+ {at: -0.3, expect: '170px'},
+ {at: 0, expect: '200px'},
+ {at: 0.5, expect: '250px'},
+ {at: 1, expect: '300px'},
+ {at: 1.5, expect: '350px'},
+]);
+
+test_composition({
+ property: 'width',
+ underlying: '100px',
+ addFrom: 'fit-content', /* 100px, not compatible */
+ addTo: 'auto', /* 200px, not compatible */
+}, [
+ {at: -0.3, expect: '200px'},
+ {at: 0, expect: '200px'},
+ {at: 0.5, expect: '300px'},
+ {at: 1, expect: '300px'},
+ {at: 1.5, expect: '300px'},
+]);
+
+test_composition({
+ property: 'width',
+ underlying: 'max-content', /* 100px */
+ addFrom: '200px',
+ addTo: 'auto', /* 200px, max-content underlying is ignored */
+}, [
+ {at: -0.3, expect: '300px'},
+ {at: 0, expect: '300px'},
+ {at: 0.5, expect: '200px'},
+ {at: 1, expect: '200px'},
+ {at: 1.5, expect: '200px'},
+]);
+</script>
+</body>