From 82b739c490310808f1aac5810906dbb79eec12a1 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 17 Jan 2012 15:15:34 +0100 Subject: [PATCH] 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(+) create mode 100644 tests/css/parser/background-size.css create mode 100644 tests/css/parser/background-size.ref.css diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am index 8b6b32004f..44bf32ae18 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 0000000000..ea75a05b51 --- /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 0000000000..b3ce6bf8fa --- /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; +}