File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -1225,6 +1225,19 @@ public function lonelyImport()
1225
1225
self ::assertSame ($ sExpected , $ oDoc ->render ());
1226
1226
}
1227
1227
1228
+ /**
1229
+ * @test
1230
+ */
1231
+ public function functionArithmeticInFile ()
1232
+ {
1233
+ $ oDoc = self ::parsedStructureForFile ('function-arithmetic ' , Settings::create ()->withMultibyteSupport (true ));
1234
+ $ sExpected = 'div {height: max(300,vh+10);}
1235
+ div {height: max(300,vh-10);}
1236
+ div {height: max(300,vh*10);}
1237
+ div {height: max(300,vh/10);} ' ;
1238
+ self ::assertSame ($ sExpected , $ oDoc ->render ());
1239
+ }
1240
+
1228
1241
public function escapedSpecialCaseTokens ()
1229
1242
{
1230
1243
$ oDoc = $ this ->parsedStructureForFile ('escaped-tokens ' );
Original file line number Diff line number Diff line change
1
+ div {
2
+ height : max (300 , vh + 10 );
3
+ }
4
+ div {
5
+ height : max (300 , vh - 10 );
6
+ }
7
+ div {
8
+ height : max (300 , vh * 10 );
9
+ }
10
+ div {
11
+ height : max (300 , vh / 10 );
12
+ }
You can’t perform that action at this time.
0 commit comments