diff options
author | Benjamin Otte <otte@redhat.com> | 2016-02-13 02:31:47 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-02-13 04:49:08 +0100 |
commit | 4a9fa1e7505651c3074b1a620047f6bfc5158a5a (patch) | |
tree | 72582dcf3e10b9dff940421944ce39d6bf1dbedd /testsuite | |
parent | 65dd9da44a0a9d5ee211e36c6a779a682469e106 (diff) | |
download | gtk+-4a9fa1e7505651c3074b1a620047f6bfc5158a5a.tar.gz |
css: Add API to handle order when printing calc()
Also, add some tests and update old ones to print calc() statements
correctly.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/css/parser/Makefile.am | 1 | ||||
-rw-r--r-- | testsuite/css/parser/calc.css | 14 | ||||
-rw-r--r-- | testsuite/css/parser/calc.ref.css | 19 |
3 files changed, 33 insertions, 1 deletions
diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am index 0cc0cce1b8..fcef07213a 100644 --- a/testsuite/css/parser/Makefile.am +++ b/testsuite/css/parser/Makefile.am @@ -227,6 +227,7 @@ test_data = \ box-shadow.css \ box-shadow.ref.css \ calc.css \ + calc.ref.css \ calc-simple.css \ calc-simple.ref.css \ close-at-end-of-file.css \ diff --git a/testsuite/css/parser/calc.css b/testsuite/css/parser/calc.css index 2c22095c7c..6e7bf54700 100644 --- a/testsuite/css/parser/calc.css +++ b/testsuite/css/parser/calc.css @@ -2,6 +2,18 @@ a { margin-left: calc(3px + 1em); } -a { +b { transition-duration: calc(1s - 100ms + -100ms); } + +c { + margin-left: calc(-2px + 1em + 4px); +} + +d { + background-size: calc( 100% - 10px ); +} + +e { + border-left-width: calc(1px + 1px); +} diff --git a/testsuite/css/parser/calc.ref.css b/testsuite/css/parser/calc.ref.css new file mode 100644 index 0000000000..4e858f70c8 --- /dev/null +++ b/testsuite/css/parser/calc.ref.css @@ -0,0 +1,19 @@ +a { + margin-left: calc(1em + 3px); +} + +b { + transition-duration: calc(-200ms + 1s); +} + +c { + margin-left: calc(1em + 2px); +} + +d { + background-size: calc(-10px + 100%); +} + +e { + border-left-width: 2px; +} |