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; +}