forked from less/less.js
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes less#2798 - left part of inequality could not be enclosed in
parenthesis.
- Loading branch information
meri
committed
Feb 17, 2016
1 parent
7b4dcc1
commit c12a7df
Showing
3 changed files
with
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.test-2798 { | ||
regression: fixed; | ||
} | ||
.conditions-parser-1 { | ||
only-atomic: ok; | ||
} | ||
.conditions-parser-2 { | ||
only-atomic-with-nested-parenthesis: ok; | ||
} | ||
.conditions-parser-3 { | ||
only-atomic-nested-parenthesis-on-right: ok; | ||
} |
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,25 @@ | ||
// https://github.com/less/less.js/issues/2798 | ||
.test-2798 when ((8+4) < 13) { | ||
regression: fixed; | ||
} | ||
.test-2798 when ((8+6) < 13) { | ||
regression: should not be visible; | ||
} | ||
.conditions-parser-1 when (8+4 < 13) { | ||
only-atomic: ok; | ||
} | ||
.conditions-parser-1 when (8+6 < 13) { | ||
only-atomic: should not be visible; | ||
} | ||
.conditions-parser-2 when (8+(5-1) < 13) { | ||
only-atomic-with-nested-parenthesis: ok; | ||
} | ||
.conditions-parser-2 when (8+(15-1) < 13) { | ||
only-atomic-with-nested-parenthesis: should not be visible; | ||
} | ||
.conditions-parser-3 when (8 < (13+1)) { | ||
only-atomic-nested-parenthesis-on-right: ok; | ||
} | ||
.conditions-parser-3 when (8 < (3+1)) { | ||
only-atomic-nested-parenthesis-on-right: should not be visible; | ||
} |