-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: support for multiline value (#27)
* Search for calc() on multiline Change the regex to match any kind of character (including line breaks). * Tests for multiline support Test if calc() value on more than one line is resolved * add example for multiline calc() value
- Loading branch information
1 parent
0ca9351
commit 44fcff6
Showing
5 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
multiline { | ||
font-size: calc( | ||
1rem | ||
* 2 | ||
* 1.5 | ||
); | ||
width: calc(1px + | ||
10px | ||
+ 100px ); | ||
height: calc( | ||
2em | ||
+ 20em + 200em); | ||
padding: calc(30px | ||
+ 3px ) calc( | ||
2px * | ||
2 | ||
+40 px | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
multiline { | ||
font-size: 3rem; | ||
width: 111px; | ||
height: 222em; | ||
padding: 33px 44px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters