| 1 |
div { |
| 2 |
/* number + whatever */ |
| 3 |
font: 3 + 2; |
| 4 |
font: 3 + 50%; |
| 5 |
font: 3 + 12px; |
| 6 |
font: 3 + #111111; |
| 7 |
font: 3 + hello; |
| 8 |
font: 3 + "hello"; |
| 9 |
font: 3 + true; |
| 10 |
font: 3 + false; |
| 11 |
font: 3 + not-there(hello); |
| 12 |
font: 3 + un#{quo}te("hello"); |
| 13 |
font: 3 + (a, b, c); |
| 14 |
font: 3 + (a b c); |
| 15 |
/* number - whatever */ |
| 16 |
font: 3 - 2; |
| 17 |
font: 3 - 50%; |
| 18 |
font: 3 - 12px; |
| 19 |
font: 3 - #111111; |
| 20 |
font: 3 - hello; |
| 21 |
font: 3 - "hello"; |
| 22 |
font: 3 - true; |
| 23 |
font: 3 - false; |
| 24 |
font: 3 - not-there(hello); |
| 25 |
font: 3 - un#{quo}te("hello"); |
| 26 |
font: 3 - (a, b, c); |
| 27 |
font: 3 - (a b c); |
| 28 |
/* number * whatever */ |
| 29 |
font: 3 * 2; |
| 30 |
font: 3 * 50%; |
| 31 |
font: 3 * 12px; |
| 32 |
font: 3 * #111111; |
| 33 |
// // the following commented expressions have invalid operands |
| 34 |
// font: 3 * hello; |
| 35 |
// font: 3 * "hello"; |
| 36 |
// font: 3 * true; |
| 37 |
// font: 3 * false; |
| 38 |
// font: 3 * not-there(hello); |
| 39 |
// font: 3 * un#{quo}te("hello"); |
| 40 |
// font: 3 * (a, b, c); |
| 41 |
// font: 3 * (a b c); |
| 42 |
/* number / whatever */ |
| 43 |
font: 3 / 2; |
| 44 |
font: (3 / 2); |
| 45 |
font: 4 * 3 / 2; |
| 46 |
font: 3 / 2 * 4; |
| 47 |
// font: (100 / 50%); // results in mixed unit |
| 48 |
// font: (3 / 12px); // results in mixed unit |
| 49 |
font: (3 / #111111); |
| 50 |
font: (3 / hello); |
| 51 |
font: (3 / "hello"); |
| 52 |
font: (3 / true); |
| 53 |
font: (3 / false); |
| 54 |
font: (3 / not-there(hello)); |
| 55 |
font: (3 / un#{quo}te("hello")); |
| 56 |
font: (3 / (a, b, c)); |
| 57 |
font: (3 / (a b c)); |
| 58 |
/* number % whatever */ |
| 59 |
font: 3 % 2; |
| 60 |
// font: 3 % 50%; // units not allowed |
| 61 |
// font: 3 % 12px; |
| 62 |
// font: 3 % #111111; // invalid operand |
| 63 |
// font: 3 % hello; |
| 64 |
// font: 3 % "hello"; |
| 65 |
// font: 3 % true; |
| 66 |
// font: 3 % false; |
| 67 |
// font: 3 % not-there(hello); |
| 68 |
// font: 3 % un#{quo}te("hello"); |
| 69 |
// font: 3 % (a, b, c); |
| 70 |
// font: 3 % (a b c); |
| 71 |
/* */ |
| 72 |
/* percentage + whatever */ |
| 73 |
font: 50% + 3; |
| 74 |
font: 50% + 100%; |
| 75 |
// font : 50% + 10px; // incompatible units |
| 76 |
// font: 50% + #111111; // invalid operands |
| 77 |
font: 50% + hello; |
| 78 |
font: 50% + "hello"; |
| 79 |
font: 50% + undefined(hello); |
| 80 |
font: 50% + un#{quo}te("hello"); |
| 81 |
font: 50% + (a, b, c); |
| 82 |
font: 50% + (a b c); |
| 83 |
/* percentage - whatever */ |
| 84 |
font: 50% - 3; |
| 85 |
font: 50% - 100%; |
| 86 |
// font: 50% - 10px; // incompatible units |
| 87 |
font: 50% - #111111; // invalid operands |
| 88 |
font: 50% - hello; |
| 89 |
font: 50% - "hello"; |
| 90 |
font: 50% - undefined(hello); |
| 91 |
font: 50% - un#{quo}te("hello"); |
| 92 |
font: 50% - (a, b, c); |
| 93 |
font: 50% - (a b c); |
| 94 |
/* percentage * whatever */ |
| 95 |
font: 50% * 3; |
| 96 |
// font: 50% * 100%; // results in squared units |
| 97 |
// font: 50% * 10px; // results in mixed units |
| 98 |
// font: 50% * #111111; // invalid operands |
| 99 |
// font: 50% * hello; |
| 100 |
// font: 50% * "hello"; |
| 101 |
// font: 50% * undefined(hello); |
| 102 |
// font: 50% * un#{quo}te("hello"); |
| 103 |
// font: 50% * (a, b, c); |
| 104 |
// font: 50% * (a b c); |
| 105 |
/* percentage / whatever */ |
| 106 |
font: (50% / 3); |
| 107 |
font: (50% / 100%); |
| 108 |
// font: (50% / 10px); // incompatible units |
| 109 |
font: (50% / #111111); // invalid operands |
| 110 |
font: (50% / hello); |
| 111 |
font: 50%/"hello"; |
| 112 |
font: (50% / undefined(hello)); |
| 113 |
font: 50% / un#{quo}te("hello"); |
| 114 |
font: 50% / (a, b, c); |
| 115 |
font: 50% / (a b c); |
| 116 |
/* percentage % whatever */ |
| 117 |
/* percentage / whatever */ |
| 118 |
font: 50% % 3; |
| 119 |
// font: 50% % 100%; // not allowed to mod by units |
| 120 |
// font: 50% % 10px; |
| 121 |
// font: 50% % #111111; // invalid operands |
| 122 |
// font: 50% % hello; |
| 123 |
// font: 50% % "hello"; |
| 124 |
// font: 50% % undefined(hello); |
| 125 |
// font: 50% % un#{quo}te("hello"); |
| 126 |
// font: 50% % (a, b, c); |
| 127 |
// font: 50% % (a b c); |
| 128 |
// font: 20px % 6px; |
| 129 |
font: type-of(3 + (a b c)); |
| 130 |
blah: (20/#abc); |
| 131 |
blah: type-of(3 + true); |
| 132 |
blah: (3 + true); |
| 133 |
blah: (true + 3); |
| 134 |
blah: (true - 5); |
| 135 |
|
| 136 |
// blah: 20px % 6px; |
| 137 |
|
| 138 |
// blah: 20 % 6px; |
| 139 |
// blah: 20px % 6hz; |
| 140 |
// blee: rgba(4,4,4,.3) % rgba(1,1,1,.3); |
| 141 |
blah: (#abc / #111); |
| 142 |
foo: type-of((1 2 3) + (a b c)); |
| 143 |
foo: (1 2 3) + (a b c); |
| 144 |
foo: (2px + 3px)*4em/2px; |
| 145 |
foo: 1cm*1in/1cm; |
| 146 |
} |