File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -415,6 +415,16 @@ function testCalcNestedInFile() {
415415 $ this ->assertSame ($ sExpected , $ oDoc ->render ());
416416 }
417417
418+ function testInvalidCalcInFile () {
419+ $ oDoc = $ this ->parsedStructureForFile ('calc-invalid ' , Settings::create ()->withMultibyteSupport (true ));
420+ $ sExpected = 'div {}
421+ div {}
422+ div {}
423+ div {}
424+ div {} ' ;
425+ $ this ->assertSame ($ sExpected , $ oDoc ->render ());
426+ }
427+
418428 function testGridLineNameInFile () {
419429 $ oDoc = $ this ->parsedStructureForFile ('grid-linename ' , Settings::create ()->withMultibyteSupport (true ));
420430 $ 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+ div {
2+ height : calc (25% - 1em );
3+ }
4+
5+ div {
6+ height : calc
7+ (25% - 1em );
8+ }
9+
10+ div {
11+ height : calc
12+ width: 100px
13+ }
14+
15+ div {
16+ height : -moz-calc;
17+ }
18+
19+ div {
20+ height : calc
21+ ;
22+ }
You can’t perform that action at this time.
0 commit comments