From 232d9226f94a1482149d8ff3f71271f3118f176a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 2 Jan 2012 15:52:21 +0100 Subject: [PATCH] tests: Add test for 'initial' and 'inherit' on shorthands --- tests/css/parser/Makefile.am | 4 +++ tests/css/parser/value-inherit-shorthand.css | 9 ++++++ .../parser/value-inherit-shorthand.ref.css | 31 +++++++++++++++++++ tests/css/parser/value-initial-shorthand.css | 9 ++++++ .../parser/value-initial-shorthand.ref.css | 31 +++++++++++++++++++ 5 files changed, 84 insertions(+) create mode 100644 tests/css/parser/value-inherit-shorthand.css create mode 100644 tests/css/parser/value-inherit-shorthand.ref.css create mode 100644 tests/css/parser/value-initial-shorthand.css create mode 100644 tests/css/parser/value-initial-shorthand.ref.css diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am index 97adb11c62..4a1bcf02f6 100644 --- a/tests/css/parser/Makefile.am +++ b/tests/css/parser/Makefile.am @@ -294,7 +294,11 @@ EXTRA_DIST += \ single-slash.ref.css \ test.png \ value-inherit.css \ + value-inherit-shorthand.css \ + value-inherit-shorthand.ref.css \ value-intial.css \ + value-intial-shorthand.css \ + value-intial-shorthand.ref.css \ value-none.css \ value-none.errors \ value-none.ref.css \ diff --git a/tests/css/parser/value-inherit-shorthand.css b/tests/css/parser/value-inherit-shorthand.css new file mode 100644 index 0000000000..e3d318fba1 --- /dev/null +++ b/tests/css/parser/value-inherit-shorthand.css @@ -0,0 +1,9 @@ +* { + border-color: inherit; + border-image: inherit; + border-radius: inherit; + border-width: inherit; + font: inherit; + margin: inherit; + padding: inherit; +} diff --git a/tests/css/parser/value-inherit-shorthand.ref.css b/tests/css/parser/value-inherit-shorthand.ref.css new file mode 100644 index 0000000000..4343ba4466 --- /dev/null +++ b/tests/css/parser/value-inherit-shorthand.ref.css @@ -0,0 +1,31 @@ +* { + border-bottom-color: inherit; + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; + border-bottom-width: inherit; + border-image-repeat: inherit; + border-image-slice: inherit; + border-image-source: inherit; + border-image-width: inherit; + border-left-color: inherit; + border-left-width: inherit; + border-right-color: inherit; + border-right-width: inherit; + border-top-color: inherit; + border-top-left-radius: inherit; + border-top-right-radius: inherit; + border-top-width: inherit; + font-family: inherit; + font-size: inherit; + font-style: inherit; + font-variant: inherit; + font-weight: inherit; + margin-bottom: inherit; + margin-left: inherit; + margin-right: inherit; + margin-top: inherit; + padding-bottom: inherit; + padding-left: inherit; + padding-right: inherit; + padding-top: inherit; +} diff --git a/tests/css/parser/value-initial-shorthand.css b/tests/css/parser/value-initial-shorthand.css new file mode 100644 index 0000000000..dbcd4bb90f --- /dev/null +++ b/tests/css/parser/value-initial-shorthand.css @@ -0,0 +1,9 @@ +* { + border-color: initial; + border-image: initial; + border-radius: initial; + border-width: initial; + font: initial; + margin: initial; + padding: initial; +} diff --git a/tests/css/parser/value-initial-shorthand.ref.css b/tests/css/parser/value-initial-shorthand.ref.css new file mode 100644 index 0000000000..e6273e3d49 --- /dev/null +++ b/tests/css/parser/value-initial-shorthand.ref.css @@ -0,0 +1,31 @@ +* { + border-bottom-color: initial; + border-bottom-left-radius: initial; + border-bottom-right-radius: initial; + border-bottom-width: initial; + border-image-repeat: initial; + border-image-slice: initial; + border-image-source: initial; + border-image-width: initial; + border-left-color: initial; + border-left-width: initial; + border-right-color: initial; + border-right-width: initial; + border-top-color: initial; + border-top-left-radius: initial; + border-top-right-radius: initial; + border-top-width: initial; + font-family: initial; + font-size: initial; + font-style: initial; + font-variant: initial; + font-weight: initial; + margin-bottom: initial; + margin-left: initial; + margin-right: initial; + margin-top: initial; + padding-bottom: initial; + padding-left: initial; + padding-right: initial; + padding-top: initial; +}