File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,12 @@ function testCalcInFile() {
395395 $ this ->assertSame ($ sExpected , $ oDoc ->render ());
396396 }
397397
398+ function testCalcNestedInFile () {
399+ $ oDoc = $ this ->parsedStructureForFile ('calc-nested ' , Settings::create ()->withMultibyteSupport (true ));
400+ $ sExpected = '.test {font-size: calc(( 3 * 4px ) + -2px);top: calc(200px - calc(20 * 3px));} ' ;
401+ $ this ->assertSame ($ sExpected , $ oDoc ->render ());
402+ }
403+
398404 function testGridLineNameInFile () {
399405 $ oDoc = $ this ->parsedStructureForFile ('grid-linename ' , Settings::create ()->withMultibyteSupport (true ));
400406 $ sExpected = "div {grid-template-columns: [linename] 100px;} \nspan {grid-template-columns: [linename1 linename2] 100px;} " ;
Original file line number Diff line number Diff line change 1+ .test {
2+ font-size : calc ((3 * 4px ) + -2px );
3+ top : calc (200px - calc (20 * 3px ));
4+ }
You can’t perform that action at this time.
0 commit comments