summaryrefslogtreecommitdiff
path: root/scss/tests.rst
diff options
context:
space:
mode:
Diffstat (limited to 'scss/tests.rst')
-rw-r--r--scss/tests.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/scss/tests.rst b/scss/tests.rst
index 4b10608..cf95d45 100644
--- a/scss/tests.rst
+++ b/scss/tests.rst
@@ -301,6 +301,23 @@ http://xcss.antpaw.org/docs/syntax/math
>>> print css.compile('''
... @option compress:no, short_colors:yes, reverse_colors:yes;
... .selector {
+ ... padding: [4em / 2em];
+ ... margin: [4em / 2em]em;
+ ... width: [8px / 2px];
+ ... height: [500px / 2];
+ ... }
+ ... ''') #doctest: +NORMALIZE_WHITESPACE
+ .selector {
+ padding: 2;
+ margin: 2em;
+ width: 4;
+ height: 250px;
+ }
+
+
+ >>> print css.compile('''
+ ... @option compress:no, short_colors:yes, reverse_colors:yes;
+ ... .selector {
... padding: [5em - 3em + 5px]px;
... margin: [20 - 10] [30% - 10];
... }