[gtk/filter-image: 2/2] Add css parser tests for filter()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/filter-image: 2/2] Add css parser tests for filter()
- Date: Sun, 7 Feb 2021 01:00:19 +0000 (UTC)
commit 3ff7c86b65a3b060ae2c899f6cf3c693e2e6ba79
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 6 19:59:01 2021 -0500
Add css parser tests for filter()
testsuite/css/parser/background-image.css | 8 ++++++++
testsuite/css/parser/background-image.ref.css | 8 ++++++++
2 files changed, 16 insertions(+)
---
diff --git a/testsuite/css/parser/background-image.css b/testsuite/css/parser/background-image.css
index 34086aa851..71b7abd1c1 100644
--- a/testsuite/css/parser/background-image.css
+++ b/testsuite/css/parser/background-image.css
@@ -74,3 +74,11 @@ r {
s {
background-image: -gtk-scaled(-gtk-icontheme("object-select-symbolic"),linear-gradient(yellow, blue));
}
+
+t {
+ background-image: cross-fade(10% image(red), 20% image(yellow), linear-gradient(blue, black));
+}
+
+u {
+ background-image: filter(url("test.png"), grayscale(100%) invert(50%));
+}
diff --git a/testsuite/css/parser/background-image.ref.css b/testsuite/css/parser/background-image.ref.css
index c44492fc84..b6cf083c31 100644
--- a/testsuite/css/parser/background-image.ref.css
+++ b/testsuite/css/parser/background-image.ref.css
@@ -73,3 +73,11 @@ r {
s {
background-image: -gtk-scaled(-gtk-icontheme("object-select-symbolic"),1,linear-gradient(rgb(255,255,0),
rgb(0,0,255)),2);
}
+
+t {
+ background-image: cross-fade(10% image(rgb(255,0,0)), 20% image(rgb(255,255,0)),
linear-gradient(rgb(0,0,255), rgb(0,0,0)));
+}
+
+u {
+ background-image: filter(none /* FIXME */,grayscale(100%) invert(50%));
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]