From b30896d7a03a23247ee06ecd902f74e57f8b7bb6 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Tue, 20 Feb 2024 09:28:58 +0000 Subject: [PATCH] Bug 1879524 [wpt PR 44496] - A non-invertible gradient/patternTransform make the paintserver invalid, a=testonly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic update from web-platform-tests A non-invertible gradient/patternTransform make the paintserver invalid The gradient/patternTransform properties follow the rules of the CSS transforms spec: "If a transform function causes the current transformation matrix of an object to be non-invertible, the object and its content do not get displayed." [1] Check if the relevant transform is non-invertible and flag the paintserver as invalid if it is. [1] https://drafts.csswg.org/css-transforms/#transform-function-lists Fixed: 40742883 Change-Id: I53c65ff1d21f04e740aa0941ffc09aa6a465149d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5272857 Auto-Submit: Fredrik Söderquist Reviewed-by: Stephen Chenney Commit-Queue: Stephen Chenney Cr-Commit-Position: refs/heads/main{#1258613} -- wpt-commits: 7567b526725c3007d02476c9d03aaf10a9522b68 wpt-pr: 44496 UltraBlame original commit: dd4b03b63cd75791bab4b4a35f6af886cadb9157 --- .../reftests/gradient-transform-01.svg | 18 ++++++++++++++++++ .../reftests/gradient-transform-02.svg | 18 ++++++++++++++++++ .../pservers/reftests/pattern-transform-02.svg | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 testing/web-platform/tests/svg/pservers/reftests/gradient-transform-01.svg create mode 100644 testing/web-platform/tests/svg/pservers/reftests/gradient-transform-02.svg create mode 100644 testing/web-platform/tests/svg/pservers/reftests/pattern-transform-02.svg diff --git a/testing/web-platform/tests/svg/pservers/reftests/gradient-transform-01.svg b/testing/web-platform/tests/svg/pservers/reftests/gradient-transform-01.svg new file mode 100644 index 000000000000..310cb7de513e --- /dev/null +++ b/testing/web-platform/tests/svg/pservers/reftests/gradient-transform-01.svg @@ -0,0 +1,18 @@ + + Gradients with non-invertible gradientTransforms, linearGradient + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/pservers/reftests/gradient-transform-02.svg b/testing/web-platform/tests/svg/pservers/reftests/gradient-transform-02.svg new file mode 100644 index 000000000000..1ce1006b8399 --- /dev/null +++ b/testing/web-platform/tests/svg/pservers/reftests/gradient-transform-02.svg @@ -0,0 +1,18 @@ + + Gradients with non-invertible gradientTransforms, radialGradient + + + + + + + + + + + + + + + + diff --git a/testing/web-platform/tests/svg/pservers/reftests/pattern-transform-02.svg b/testing/web-platform/tests/svg/pservers/reftests/pattern-transform-02.svg new file mode 100644 index 000000000000..93acd1d62736 --- /dev/null +++ b/testing/web-platform/tests/svg/pservers/reftests/pattern-transform-02.svg @@ -0,0 +1,18 @@ + + Patterns with non-invertible patternTransforms + + + + + + + + + + + + + +