[gtk+] tests: Add parsing test for background-size
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Add parsing test for background-size
- Date: Thu, 2 Feb 2012 02:20:16 +0000 (UTC)
commit 82b739c490310808f1aac5810906dbb79eec12a1
Author: Benjamin Otte <otte redhat com>
Date: Tue Jan 17 15:15:34 2012 +0100
tests: Add parsing test for background-size
tests/css/parser/Makefile.am | 2 +
tests/css/parser/background-size.css | 51 ++++++++++++++++++++++++++++++
tests/css/parser/background-size.ref.css | 51 ++++++++++++++++++++++++++++++
3 files changed, 104 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index 8b6b320..44bf32a 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -153,6 +153,8 @@ EXTRA_DIST += \
background-repeat.ref.css \
background-shorthand.css \
background-shorthand.ref.css \
+ background-size.css \
+ background-size.ref.css \
boolean.css \
boolean.errors \
boolean.ref.css \
diff --git a/tests/css/parser/background-size.css b/tests/css/parser/background-size.css
new file mode 100644
index 0000000..ea75a05
--- /dev/null
+++ b/tests/css/parser/background-size.css
@@ -0,0 +1,51 @@
+a {
+ background-size: cover;
+}
+
+b {
+ background-size: contain;
+}
+
+c {
+ background-size: auto;
+}
+
+d {
+ background-size: auto auto;
+}
+
+e {
+ background-size: auto 100%;
+}
+
+f {
+ background-size: 100% auto;
+}
+
+g {
+ background-size: 100%;
+}
+
+h {
+ background-size: auto 10px;
+}
+
+i {
+ background-size: 10px auto;
+}
+
+j {
+ background-size: 10px;
+}
+
+k {
+ background-size: 10px 100%;
+}
+
+l {
+ background-size: 100% 10px;
+}
+
+m {
+ background-size: 10px 10px;
+}
diff --git a/tests/css/parser/background-size.ref.css b/tests/css/parser/background-size.ref.css
new file mode 100644
index 0000000..b3ce6bf
--- /dev/null
+++ b/tests/css/parser/background-size.ref.css
@@ -0,0 +1,51 @@
+a {
+ background-size: cover;
+}
+
+b {
+ background-size: contain;
+}
+
+c {
+ background-size: auto;
+}
+
+d {
+ background-size: auto;
+}
+
+e {
+ background-size: auto 100%;
+}
+
+f {
+ background-size: 100%;
+}
+
+g {
+ background-size: 100%;
+}
+
+h {
+ background-size: auto 10px;
+}
+
+i {
+ background-size: 10px;
+}
+
+j {
+ background-size: 10px;
+}
+
+k {
+ background-size: 10px 100%;
+}
+
+l {
+ background-size: 100% 10px;
+}
+
+m {
+ background-size: 10px 10px;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]