summaryrefslogtreecommitdiff
path: root/test/data/parse2
diff options
context:
space:
mode:
authorMichael Orlitzky <michael@orlitzky.com>2023-09-18 10:36:48 -0400
committerJohn-Mark Bell <jmb@netsurf-browser.org>2023-10-01 10:47:37 +0100
commitd6e9f636d693fb129b373862d69ae85c861049f0 (patch)
tree51405100b1691bee9043088a2d3e406ec85111af /test/data/parse2
parent20de9212123bd14efa8f1fd500765038be3851bf (diff)
downloadlibcss-d6e9f636d693fb129b373862d69ae85c861049f0.tar.gz
libcss-d6e9f636d693fb129b373862d69ae85c861049f0.tar.bz2
Add support for SVG fill-opacity property
https://www.w3.org/TR/SVGTiny12/painting.html#FillOpacityProperty This property is unique to SVG documents, but is otherwise analogous to the usual CSS "opacity" property.
Diffstat (limited to 'test/data/parse2')
-rw-r--r--test/data/parse2/INDEX1
-rw-r--r--test/data/parse2/svg.dat39
2 files changed, 40 insertions, 0 deletions
diff --git a/test/data/parse2/INDEX b/test/data/parse2/INDEX
index e4a369c..95534f6 100644
--- a/test/data/parse2/INDEX
+++ b/test/data/parse2/INDEX
@@ -24,3 +24,4 @@ multicol.dat Multi-column layout property tests
flexbox.dat Flexbox properties and shorthands tests
units.dat Length unit tests
dodgy-media-block.dat Media block with incomplete ruleset
+svg.dat SVG property tests
diff --git a/test/data/parse2/svg.dat b/test/data/parse2/svg.dat
new file mode 100644
index 0000000..19839c7
--- /dev/null
+++ b/test/data/parse2/svg.dat
@@ -0,0 +1,39 @@
+#data
+* { fill-opacity: inherit; }
+#errors
+#expected
+| *
+| fill-opacity: inherit
+#reset
+
+#data
+* { fill-opacity: revert; }
+#errors
+#expected
+| *
+| fill-opacity: revert
+#reset
+
+#data
+* { fill-opacity: 0.867; }
+#errors
+#expected
+| *
+| fill-opacity: 0.867
+#reset
+
+#data
+* { fill-opacity: -0.5; }
+#errors
+#expected
+| *
+| fill-opacity: 0
+#reset
+
+#data
+* { fill-opacity: 5; }
+#errors
+#expected
+| *
+| fill-opacity: 1
+#reset