From 5723ed3443128d3a47a6e30b44cb6e5a98cd1c41 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 29 Oct 2024 14:10:15 +0000 Subject: [PATCH] Tests: Add clip-path to calc() coverage test --- Tests/LibWeb/Text/expected/css/calc-coverage.txt | 4 ++++ Tests/LibWeb/Text/input/css/calc-coverage.html | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/Tests/LibWeb/Text/expected/css/calc-coverage.txt b/Tests/LibWeb/Text/expected/css/calc-coverage.txt index 83df2a2df19..eb71f2c3a3f 100644 --- a/Tests/LibWeb/Text/expected/css/calc-coverage.txt +++ b/Tests/LibWeb/Text/expected/css/calc-coverage.txt @@ -34,6 +34,10 @@ border-top-width: 'calc(2px)' -> 'calc(2px)' border-top-width: 'calc(2px * var(--n))' -> 'calc(2px * 2)' bottom: 'calc(2px)' -> 'calc(2px)' bottom: 'calc(2px * var(--n))' -> 'calc(2px * 2)' +clip-path: 'polygon(calc(0px) calc(2px), calc(2px) calc(0px), calc(2px) calc(2px))' -> 'polygon(calc(0px) calc(2px),calc(2px) calc(0px),calc(2px) calc(2px))' +clip-path: 'polygon(calc(0px * var(--n)) calc(2px * var(--n)), calc(2px * var(--n)) calc(0px * var(--n)), calc(2px * var(--n)) calc(2px * var(--n)))' -> 'polygon(calc(0px * 2) calc(2px * 2),calc(2px * 2) calc(0px * 2),calc(2px * 2) calc(2px * 2))' +clip-path: 'polygon(calc(0%) calc(2%), calc(2%) calc(0%), calc(2%) calc(2%))' -> 'polygon(calc(0%) calc(2%),calc(2%) calc(0%),calc(2%) calc(2%))' +clip-path: 'polygon(calc(0% * var(--n)) calc(2% * var(--n)), calc(2% * var(--n)) calc(0% * var(--n)), calc(2% * var(--n)) calc(2% * var(--n)))' -> 'polygon(calc(0% * 2) calc(2% * 2),calc(2% * 2) calc(0% * 2),calc(2% * 2) calc(2% * 2))' column-count: 'calc(2)' -> 'calc(2)' column-count: 'calc(2 * var(--n))' -> '4' column-gap: 'calc(2px)' -> 'calc(2px)' diff --git a/Tests/LibWeb/Text/input/css/calc-coverage.html b/Tests/LibWeb/Text/input/css/calc-coverage.html index 159e34b5abb..654a9e99137 100644 --- a/Tests/LibWeb/Text/input/css/calc-coverage.html +++ b/Tests/LibWeb/Text/input/css/calc-coverage.html @@ -80,6 +80,12 @@ "calc(2px)", "calc(2px * var(--n))", ], + "clip-path": [ + "polygon(calc(0px) calc(2px), calc(2px) calc(0px), calc(2px) calc(2px))", + "polygon(calc(0px * var(--n)) calc(2px * var(--n)), calc(2px * var(--n)) calc(0px * var(--n)), calc(2px * var(--n)) calc(2px * var(--n)))", + "polygon(calc(0%) calc(2%), calc(2%) calc(0%), calc(2%) calc(2%))", + "polygon(calc(0% * var(--n)) calc(2% * var(--n)), calc(2% * var(--n)) calc(0% * var(--n)), calc(2% * var(--n)) calc(2% * var(--n)))", + ], "column-count": [ "calc(2)", "calc(2 * var(--n))",