diff options
author | Benjamin Otte <otte@redhat.com> | 2016-02-12 07:59:06 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-02-13 04:49:08 +0100 |
commit | 65dd9da44a0a9d5ee211e36c6a779a682469e106 (patch) | |
tree | 949576a8d08be2e9dc5acaea132471729c7dbb2f /testsuite/css | |
parent | cd6dc954f2bd173903d805fe3c4810ae25e82490 (diff) | |
download | gtk+-65dd9da44a0a9d5ee211e36c6a779a682469e106.tar.gz |
css: Add support for sums to calc()
This requires adding code to do math on number values:
gtk_css_number_value_multiply()
and
gtk_css_number_value_try_add()
were added to achieve that.
Some tests are included.
Diffstat (limited to 'testsuite/css')
-rw-r--r-- | testsuite/css/parser/Makefile.am | 1 | ||||
-rw-r--r-- | testsuite/css/parser/calc.css | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/css/parser/Makefile.am b/testsuite/css/parser/Makefile.am index 28fa71fcf3..0cc0cce1b8 100644 --- a/testsuite/css/parser/Makefile.am +++ b/testsuite/css/parser/Makefile.am @@ -226,6 +226,7 @@ test_data = \ border-width.ref.css \ box-shadow.css \ box-shadow.ref.css \ + calc.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 new file mode 100644 index 0000000000..2c22095c7c --- /dev/null +++ b/testsuite/css/parser/calc.css @@ -0,0 +1,7 @@ +a { + margin-left: calc(3px + 1em); +} + +a { + transition-duration: calc(1s - 100ms + -100ms); +} |