[gtk/matthiasc/for-master: 3/3] Add tests for the css filter property




commit a1f7073ff5f4960b240f60486959fe00e0931389
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 5 21:37:47 2021 -0500

    Add tests for the css filter property
    
    Test that we can parse filters.

 testsuite/css/parser/filter.css     | 23 +++++++++++++++++++++++
 testsuite/css/parser/filter.ref.css | 23 +++++++++++++++++++++++
 2 files changed, 46 insertions(+)
---
diff --git a/testsuite/css/parser/filter.css b/testsuite/css/parser/filter.css
new file mode 100644
index 0000000000..8a114e590a
--- /dev/null
+++ b/testsuite/css/parser/filter.css
@@ -0,0 +1,23 @@
+a {
+  filter: initial;
+}
+
+b {
+  filter: inherit;
+}
+
+c {
+  filter: unset;
+}
+
+d {
+  filter: none;
+}
+
+e {
+  filter: blur(2px) brightness(20%) contrast(120%) grayscale(100%) hue-rotate(45deg) invert(50%) 
opacity(25%) saturate(90%) sepia(100%);
+}
+
+f {
+  filter: drop-shadow(rgb(255,0,0) 1px 2px);
+}
diff --git a/testsuite/css/parser/filter.ref.css b/testsuite/css/parser/filter.ref.css
new file mode 100644
index 0000000000..70b733b325
--- /dev/null
+++ b/testsuite/css/parser/filter.ref.css
@@ -0,0 +1,23 @@
+a {
+  filter: initial;
+}
+
+b {
+  filter: inherit;
+}
+
+c {
+  filter: unset;
+}
+
+d {
+  filter: none;
+}
+
+e {
+  filter: blur(2px) brightness(20%) contrast(120%) grayscale(100%) hue-rotate(45deg) invert(50%) 
opacity(25%) saturate(90%) sepia(100%);
+}
+
+f {
+  filter: drop_shadow(1px 2px rgb(255,0,0));
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]