From 33be60b0ab53b62d53e10a8334c7ad7d22ad6370 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 28 Dec 2015 23:20:57 -0500 Subject: Add a css style test for inherit and initial --- testsuite/css/style/Makefile.am | 1 + testsuite/css/style/inherit.css | 11 +++++++++++ testsuite/css/style/inherit.nodes | 9 +++++++++ testsuite/css/style/inherit.ui | 27 +++++++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 testsuite/css/style/inherit.css create mode 100644 testsuite/css/style/inherit.nodes create mode 100644 testsuite/css/style/inherit.ui (limited to 'testsuite/css') diff --git a/testsuite/css/style/Makefile.am b/testsuite/css/style/Makefile.am index a7d1e99e1b..d589a87681 100644 --- a/testsuite/css/style/Makefile.am +++ b/testsuite/css/style/Makefile.am @@ -25,6 +25,7 @@ test_css_style_SOURCES = \ test-css-style.c test_data = \ + inherit.ui inherit.css inherit.nodes \ label.ui label.css label.nodes \ nth-child.ui nth-child.css nth-child.nodes \ $(NULL) diff --git a/testsuite/css/style/inherit.css b/testsuite/css/style/inherit.css new file mode 100644 index 0000000000..61ac21a312 --- /dev/null +++ b/testsuite/css/style/inherit.css @@ -0,0 +1,11 @@ +@import "reset-to-defaults.css"; + +box { + color: red; + opacity: 0.5; +} + +label#label1 { + color: initial; + opacity: inherit; +} diff --git a/testsuite/css/style/inherit.nodes b/testsuite/css/style/inherit.nodes new file mode 100644 index 0000000000..b27d707cb4 --- /dev/null +++ b/testsuite/css/style/inherit.nodes @@ -0,0 +1,9 @@ +window visible=0 state=dir-ltr classes=background + decoration visible=1 state=dir-ltr + box visible=1 state=dir-ltr classes=horizontal + color: rgb(255,0,0) (inherit.css:4:12) + opacity: 0.5 (inherit.css:5:14) + label id=label1 visible=1 state=dir-ltr + opacity: 0.5 (inherit.css:10:18) + label id=label2 visible=1 state=dir-ltr + color: rgb(255,0,0) (reset-to-defaults.css:2:12) diff --git a/testsuite/css/style/inherit.ui b/testsuite/css/style/inherit.ui new file mode 100644 index 0000000000..bd224b464d --- /dev/null +++ b/testsuite/css/style/inherit.ui @@ -0,0 +1,27 @@ + + + + + False + popup + + + True + + + True + label1 + Hello World! + + + + + label2 + True + Hello World! + + + + + + -- cgit v1.2.1